You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Dean Gaudet <dg...@arctic.org> on 1997/04/28 02:57:35 UTC
[PATCH] _default_ does not work properly with ports
I'm sure I saw a PR related to this but can't find it now.
<VirtualHost _default_:8080> and its ilk don't work properly on multi-port
servers. Fix is easy.
Dean
Index: http_main.c
===================================================================
RCS file: /export/home/cvs/apache/src/http_main.c,v
retrieving revision 1.141
diff -c -3 -r1.141 http_main.c
*** http_main.c 1997/04/28 00:14:27 1.141
--- http_main.c 1997/04/28 00:48:07
***************
*** 1477,1483 ****
sar->host_addr.s_addr == server_ip.s_addr) &&
(sar->host_port == 0 || sar->host_port == port)) {
return virt;
! } else if ( sar->host_addr.s_addr == DEFAULT_VHOST_ADDR ) {
/* this is so that you can build a server that is the
"default" for any interface which isn't explicitly
specified. So that you can implement "deny anything
--- 1477,1484 ----
sar->host_addr.s_addr == server_ip.s_addr) &&
(sar->host_port == 0 || sar->host_port == port)) {
return virt;
! } else if ( sar->host_addr.s_addr == DEFAULT_VHOST_ADDR
! && (sar->host_port == 0 || sar->host_port == port)) {
/* this is so that you can build a server that is the
"default" for any interface which isn't explicitly
specified. So that you can implement "deny anything