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] Virtualhost location variable
Date Wed, 30 Mar 2011 08:30:57 GMT
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 thet by default block the /manager uri?
Is it possible?

Regards
Michele

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message