From mboxrd@z Thu Jan 1 00:00:00 1970 From: Chip Upsal Subject: Re: Update httpd.conf file: Apache virtualhost not working behin d firewall. Date: Sun, 22 Dec 2002 10:06:56 -0700 Sender: netfilter-admin@lists.netfilter.org Message-ID: <3E05F130.7000909@CyberWolf.com> References: <3019863CF306D211BA4500A0CC30812DB4C250@exchange.cyberwolf.com> <3E043E98.2050509@istitutocolli.org> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <3E043E98.2050509@istitutocolli.org> Errors-To: netfilter-admin@lists.netfilter.org List-Help: List-Post: List-Subscribe: , List-Id: List-Unsubscribe: , List-Archive: Content-Type: text/plain; charset="us-ascii"; format="flowed" To: Andrea Rossato Cc: netfilter@lists.netfilter.org I tend to agree...but i have tried all the documented and undocumented VirutalHost setups i could find. Furthermore, it is bothersome that the VirtualHost work fine when the HTTP server is not behind the IPTables firewall. Andrea Rossato wrote: > Chip Upsal wrote: > >> I doubt it is strictly an apache problem as if we remove the firewall >> and >> assign the external ip address to the server it all works well. > > > if you solved the iptables problem and you are properly forwarding > traffic to the internal box, that's probably an apache issue: as far > as i understand you are creating a name based virtul host: apache > should look in the _http_headers_ to respond with the correct web > server name. (http headers are indeed in packet payloads and iptables > will not touch them when S/DNATting). > > so: > > NameVirtualHost 192.168.0.2 > > ServerName site4.company.com > ServerAlias site4* > ServerAdmin admin@company.com > DocumentRoot D:/web_root/foo4 > ErrorLog logs/site4.cyberwolf.com-error_log > CustomLog logs/site4.cyberwolf.com-access_log common > > > hope that this is going to work (is working for me, though). > andrea >