httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Joshua Slive" <jos...@slive.ca>
Subject Re: [users@httpd] Using .htaccess in a front-end/back-end setup
Date Mon, 04 Sep 2006 21:07:08 GMT
On 9/4/06, Bill Moseley <moseley@hank.org> wrote:
> This is on: Apache/2.0.55
>
> On a related note, I can't seem to get access control working in my
> .htaccess files.  I'm wondering if my RewriteRule could be confusing
> things.
>
> The .htaccess file contains only these two lines:
>
>     deny from all
>     Redirect /foo/ls.apache http://apache.org/
>
>
> "Redirect" in the .htaccess files works, so Apache is reading
> the file (and can also be seen by the strace output below).
>
>     $ HEAD -S http://localhost/foo/ls.apache
>     HEAD http://localhost/foo/ls.apache --> 302 Found
>     HEAD http://apache.org/ --> 200 OK
>
> But the deny isn't:
>
>     $ HEAD -S http://localhost/foo/ls.txt
>     HEAD http://localhost/foo/ls.txt --> 200 OK

Add
Order allow,deny
to you .htaccess and see if that fixes it.  Also check for other
Allow/Deny/Order directives that may be affecting this directory.

Joshua.

---------------------------------------------------------------------
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