Re: [users@httpd] Using .htaccess in a front-end/back-end setup

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

 



On 9/4/06, Bill Moseley <moseley@xxxxxxxx> 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@xxxxxxxxxxxxxxxx
  "   from the digest: users-digest-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