You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by "Porter, Mark" <Ma...@LibertyMutual.com> on 2004/12/30 21:11:02 UTC

[users@httpd] Port-based vhosts

2.0.47 on Solaris

I have two vhosts defined:

Listen 81
Listen 82

<VirtualHost _default_:81>
ServerName server.domain.com:81
.
.
</VirtualHost>

<VirtualHost _default_:82>
ServerName server.domain.com:82
.
.
</VirtualHost>

The problem is that there's a bug in IE, where if it gets redirected from the :81 vhost to the :82 vhost (302 and a Location header), the browser's first request to the :82 vhost has the http_host header set incorrectly to site.domain.com:81, when it should be site.domain.com:82.

My question is:

How does Apache decide which virtual host config should handle the request with the bad http_host header? Does it look at the header, like a NameVirtualHost vhost does - in which case it will go to the wrong vhost, or does it look at the socket that was used to bring in the transaction? 

Mark

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org