Re: Tux virtual_server cannot pass trough to Apache VirtualHost...
Scott Switzer <[email protected]>
| Newsgroups | gmane.network.tux |
|---|---|
| Message-ID | <1053166591.1033.79.camel@spice> |
Hello, I have finally figured out the way to get Virtual hosts to work in Apache. In httpd.conf: Listen 127.0.0.1:8080 NameVirtualHost *:8080 <VirtualHost *:8080> ... </VirtualHost> Aparently, Apache still thinks that the IP address is the external IP address of the server, not 127.0.0.1, when it is doing Virtual Hosting. While the loopback address is needed in the Listen directive, Virtual Hosting will break if you target virtual hosting to 127.0.0.1. Thanks for everyone's help. Scott Switzer On Fri, 2003-05-16 at 22:00, Chris Davies wrote: > On Fri, 2003-05-16 at 14:13, Scott Switzer wrote: > > Chris, > > > > Thanks for the message - I tried, and it still does not work. Here are > > the relevant pieces of my setup: > > > > TUX: > > Listening on 0.0.0.0:80 (this is the default) > > client_ip = 8080 (this is the default) > clientport ??? > > > virtual_server set to 1 (this makes a request to > > http://www.site.com/page.php map to /var/www/html/site.com/page.php) > > In /etc/tux.mime.types, the parameter TUX/redirect is mapped to php. > > > > APACHE: > > NameVirtualHost 127.0.0.1:8080 > > A sample vhost is: > > > > <VirtualHost 127.0.0.1:8080> > > ServerName www.site.com > > ServerAdmin [email protected] > > DocumentRoot /var/www/html/site.com > > ErrorLog logs/site.com-error_log > > TransferLog /dev/null > > </VirtualHost> > > just for kicks, put: > > ServerAlias site.com in your virtual config > > I don't recall if tux strips off the www. when it sends the request or > not. >