httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michele Mase'" <michele.m...@gmail.com>
Subject [users@httpd] Fwd: Virtualhost location variable
Date Fri, 15 Apr 2011 22:19:26 GMT
Anyone?

---------- Forwarded message ----------
From: Michele Mase' <michele.mase@gmail.com>
Date: Wed, Mar 30, 2011 at 10:30 AM
Subject: Virtualhost location variable
To: users@httpd.apache.org


I've the following situation:
I need to block the access on a particular location,as the example:
...
<Location /manager>
Order Deny,Allow
Deny from all
Allow from localhost safenet1 safenet2 ...
</Location>
...

I need to do the same for all the virtualhosts, more than 1K...

Solution1:

using sed|awk put the rule inside all virtualhosts.

Solution2:

How could I write some env variable that by default blocks the /manager uri?
Is it possible?

Regards
Michele

Mime
View raw message