Re: Tux virtual_server cannot pass trough to Apache VirtualHost...

Scott Switzer <[email protected]>
Newsgroups gmane.network.tux
Message-ID <1053108777.1031.28.camel@spice>
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)
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>


When a request to an html page is made, TUX makes the correct mapping,
and pulls the file out of /var/www/html/site.com.

When a request to a php page is made, Apache returns an error, which
states that it cannot find the file from /var/www/html/page.php.

I am using the same domain for both of these requests.

Thanks
Scott


On Fri, 2003-05-16 at 18:23, Chris Davies wrote:
> make sure your virtual hosts are configured similar to:
> 
> <VirtualHost *>
>   ServerName g.domain.com
>   ServerAdmin [email protected]
>   DocumentRoot /var/www/66.1.1.1/g.domain.com
>   CustomLog /var/log/apache2/g.domain.com-access.log combined
>   ServerSignature On
> </VirtualHost>
> 
> all requests are passed through on the IP 127.0.0.1 and they use HTTP
> 1.1, which means that it is all based on the ServerName and ServerAlias
> configuration of each site.
> 
> You will also need to do NameVirtualHost 127.0.0.1 on your apache server
> so that it knows to do virtual hosting.
> 
> 
> On Fri, 2003-05-16 at 13:00, Scott Switzer wrote:
> > Hello,
> > 
> > I am considering implementing tux for a high-traffic site, which is
> > currently running a few VirtualHosts using Apache.  I was able to set up
> > tux using Virtual Hosts by setting the virtual_server parameter to 1.
> > 
> > This works fine, until it tries to pass through a php page to Apache
> > running on port 8080.  Apache returns with an error: 
> > /var/www/html/webpage.php is not available.
> > 
> > This is because my virtual server is located at:
> > 
> > /var/www/html/website.com/webpage.php.
> > 
> > It seems like tux strips off the website name before it is passed to
> > apache. 
> > 
> > Has anyone experienced this, and if so, is there a remedy?
> > 
> > Thanks,
> > Scott Switzer
> > 
> > 
> > 
> > 
> > _______________________________________________
> > tux-list mailing list
> > [email protected]
> > https://www.redhat.com/mailman/listinfo/tux-list
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.