You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by sameer <sa...@c2.org> on 1996/07/15 02:46:12 UTC
Host: bug
I had:
Port 80
Listen 80
Listen 443
ServerName www.anonymizer.com
[...]
<VirtualHost *:443>
ServerName www.anonymizer.com
[...]
</VirtualHost>
When I connected to port 80, it used port 443 config.
The following patch fixes this. I don't understand the Host:
stuff, so it probably breaks other things. Perhaps there is a way in
the config file to do this without a patch.. I couldn't find
one. Perhaps someone with more Host: clue can help me out.
David Robinson said "don't use Port" -- I tried that with
ports 8888 and 4444 (where ServerName was different for the two
virtualhosts) -- the result of that was that the port in mod_info for
port 8888 showed up as port 80.
mod_info is a great debugging tool, btw. Good work rasmus.
*** http_protocol.c.orig Sun Jul 14 17:37:48 1996
--- http_protocol.c Sun Jul 14 17:35:53 1996
***************
*** 389,395 ****
char *names = s->names;
if ((!strcasecmp(host, s->server_hostname)) &&
! (!port || (port == s->port))) {
r->server = r->connection->server = s;
if (r->hostlen && !strncmp(r->uri, "http://", 7)) {
r->uri += r->hostlen;
--- 389,395 ----
char *names = s->names;
if ((!strcasecmp(host, s->server_hostname)) &&
! (port == s->port)) {
r->server = r->connection->server = s;
if (r->hostlen && !strncmp(r->uri, "http://", 7)) {
r->uri += r->hostlen;
--
Sameer Parekh Voice: 510-986-8770
Community ConneXion, Inc. FAX: 510-986-8777
The Internet Privacy Provider
http://www.c2.net/ sameer@c2.net