Actions
Feature #458
closed$HTTP["host"] condition when no host is specified (default virtual host)
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
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