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