AW: Virtual hosts not working

Max Helmet max at expires-2004.workforce.de
Mon Dec 19 14:41:53 UTC 2005


> I was just trying to use Tux with virtual hosts. I've set up the following
> directory structure:
>
> /www/bla
> /www/blorb
> /www/blub
>
> So that people requesting www.bla.com would get the content in
> /www/bla etc.
>
> Now in /proc/sys/net/tux I did
>
> $ echo 1 > virtual_server
> $ echo "/www/" > documentroot
> $ echo 2 > strip_host_tail
>
> At that point, Tux became almost unresponsive and didn't server any pages.
> Did I do something wrong? I monitored /proc/kmsg but nothing showed up
> there. I use Linux 2.6.5.

Tux removes the preceding www in the hostname ("www.bla.com" -> "bla.com"),
your strip_host_tail statement removes the last two parts of the hostname
("bla.com" -> "").

Regards,
Max




More information about the tux-list mailing list