Hi,

for setups that only use virtual hosts, it can be useful to deny 
requests in the main server context with a meaningful error message. 
This can make debugging configuration errors much easier.

AFAICS, there is no easy way to achieve this. Or did I miss something? 
Any opinions about adding a new config directive for this purpose? If 
yes, how should this be named? AllowNonVHostRequests (with a default 
of 'yes')?

An alternative would be to expose server_rec->is_virtual in the 
expressoin parser and have the admin add an appropriate <If> section 
to deny access. However this has higher overhead at run time and the 
error message in the log would be less descriptive.

Cheers,
Stefan

Reply via email to