Skip to main content
edited tags
Link
Jeff Schaller
  • 68.8k
  • 35
  • 122
  • 264
Fixed grammar and word selection
Source Link
Christopher
  • 16.3k
  • 7
  • 56
  • 66

I have 5 virtual hosts in httpdhttpd.conf.conf

all All of them have thisthe configuration below except for one.

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

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

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

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

  and then remove this lawstanza from one of the virtual hosts

  in httpd.conf 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 ?

I have 5 virtual hosts in httpd.conf. All of them have the configuration below 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 stanza from one of the virtual hosts in httpd.conf?

Source Link
user73984
user73984

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 ?