Fwd: Virtualhost location variable

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Anyone?

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


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


[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux