httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ryan Bloom <...@covalent.net>
Subject Re: Virutal Host and ServerName with ports...
Date Tue, 18 Dec 2001 14:34:26 GMT
On Tuesday 18 December 2001 03:35 am, jean-frederic clere wrote:
> Ryan Bloom wrote:
> > 
> > Hi.
> > 
> > The big thing about ServerName in 2.0 is that it has taken over for the Port
> > directive from 1.3. So, the following config means that the server
> > listens on 127.0.0.1, port 8080, but reports itself as foo.com on port 80.
> > 
> > <VirtualHost 127.0.0.1:8080>
> >     ServerName foo.com:80
> > </VirtualHost>
> > 
> > That reporting is done whenever the server creates a self-referential
> > URL, which is done by mod_dir, and in all error pages among other
> > places in the code.
> > 
> > The ServerName directive NEVER controls the port that the server
> > actuall listens on.
> 
> Hi,
> 
> That brings a small problem in mod_webapp:
> The ServerName hostname:port is used to build the virtual host for Tomcat.
> A redirect from Tomcat will come for hostname:port...
> This fails if the port is not the one used for the listen...
> 
> Any hints to solve this?

The temporary fix is to use UseCanonicalName off.

Ryan
______________________________________________________________
Ryan Bloom				rbb@apache.org
Covalent Technologies			rbb@covalent.net
--------------------------------------------------------------

Mime
View raw message