Project

General

Profile

Actions

Feature #458

closed

$HTTP["host"] condition when no host is specified (default virtual host)

Added by Anonymous almost 19 years ago. Updated over 17 years ago.

Status:
Fixed
Priority:
Normal
Category:
core
Target version:
ASK QUESTIONS IN Forums:

Description

It seems you can't match a $HTTPhost condition to requests that don't have a "host:" header. $HTTPhost == "" doesn't seem to work, which would be helpful for doing some kind of default virtual host when not using mod_simple_vhost.

I took a quick glance at the sourcecode, and with just a rough understanding came up with this patch that seems to work.


--- src/configfile-glue.c.original      Wed Jan 11 17:55:23 2006
+++ src/configfile-glue.c       Wed Jan 11 17:56:11 2006
@@ -230,7 +230,7 @@
                                break;
                        }
                } else {
-                       l = NULL;
+                       l = srv->empty_string;
                }
                break;
        }

-- bp

Actions #1

Updated by moo over 18 years ago

  • Status changed from New to Assigned
Actions #2

Updated by moo over 18 years ago

  • Status changed from Assigned to Fixed
  • Resolution set to fixed

fixed in r1053

Actions

Also available in: Atom