More information:  If I replace the <VirtualHost _default_:*>
with <VirtualHost 1.2.3.4:80>, /server-info#server shows
the correct port, instead of 0 (I assume redirects will work
under that configuration -- I didn't actually try one.)

Also, this works if I use <VirtualHost _default_:80>, which
will be fine for what I want to do.  And, I just tested
redirects with this configuration, and they work.

The problem seems to be with ":*" in a <VirtualHost> directive.
I did try <VirtualHost: 1.2.3.4:*> and got the port 0 problem
again.  Is it that when a virtual host matches, and the port
is specified as "*", it doesn't remeber what port the request
came on, and tries to convert "*" to an int, instead?  (I would
grovel a bit through the source, but I've spent enough time on
this today.)

        --Jack

On Tue, 13 May 1997, Dean Gaudet wrote:

> Try adding "Port 80" to your main server.  You shouldn't have to add a
> Port statement to either of those vhosts.  But the Listen statements may
> be messing up the Port of the main server.  I'm not sure if this is a bug
> or not though, I'd have to dig.
> 
> Dean
> 
> 


Reply via email to