Re: "Deny" directives silently ignored in config files

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

 



Noel Butler <noel.butler@xxxxxxxxxx> writes:

> On Wed, 2012-04-18 at 10:07 +0200, Matthieu Moy wrote:
>
>     I tried the following:
>     
>     <Location /tmp/>
>     Order deny,allow
>     Deny from all
>     #RewriteEngine On
>     #RewriteRule . - [F]
>     </Location>
>
> It should work, but unless there's a special need, you should be using
> directory not location,

Right. I used Location because it was simpler, but after RTFM, I
understand why Directory is used more often.

> for apache 2.2.22 and less:
>
> <Directory /tmp>
> Order Deny,Allow
> Deny from all
> </Directory>
>
> Will work, you do not have a directory statement for /tmp already do you? If so, is it before or after this location statement?

I don't have another Directory statement for this particular directory,
but I do have others for parent directories. I tried putting my test
section at the beginning and end of the virtualhost declaration, and and
the beginning and end of /etc/apache2/apache2.conf, and neither of the 4
options worked.

-- 
Matthieu Moy
http://www-verimag.imag.fr/~moy/

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[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