iptables and apache virtual hosts

Luke Davis ldavis at shellworld.net
Sat Mar 12 23:28:29 EST 2005


What do your apache "namevirtualhost" lines, and one or two of your 
non-working virtual host declarations, look like?

Based upon what you describe, you shouldn't have a problem, but see my 
next message.

On Sat, 12 Mar 2005, Janina Sajka wrote:

> I am looking for some help with iptables and apache ...
>
> I have had several domain names working as virtual hosts via apache on
> my primary server. These have been working just fine.
>
> Now, I've acquired a Linksys WRT GS and configured it in line between my
> ISP and my main server. I am using nat to forward connections for
> several ports, for example:
>
> $IPT -t nat -A PREROUTING -i $WAN -p tcp --dport 80 -j DNAT --to
> 192.168.1.1:80
>
> This forwards all http requests to the default host at 192.168.77.1, and
> sees none of the virtual, name-based hosts.
>
> My apache httpd.conf is configured to listen on 192.168.1.1, so I don't
> think that's the cause.
>
> Any help greatly appreciated.
>
>
>




More information about the Speakup mailing list