Skip to main content
1 of 3
user avatar
user avatar

Can <Location /> be for multiple virtual hosts in httpd.conf?

I have 5 virtual hosts in httpd.conf

all of them have this except for one.

<Location />
Order Deny,Allow
Deny from all
Allow from IP.ADDRESS.GOES.HERE
</Location>

i think it would be better to tell all virtual hosts to have this except for one.

currently i am telling each virtual host one by one to have this.

is there a wild card method to apply this setting to all virtual hosts

and then remove this law from one of the virtual hosts

in httpd.conf ?

user73984