Re: .htaccess for script aliased directories‏

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

 



2008/4/24 Pam Astor <pamastor@xxxxxxxxxxx>:
>
>
>
> I am trying to password protect a sub directory within the web space of a
> domain that is serving site statistics of awstats generated pages.  The path
> to the dir is /home/user1/www/awstats.  When testing, I am able to get a
> username and password prompt for the front page of the site, i.e. for
> www.mydomain.com, when I place the .htaccess file in www.  But I can't get a
> functional prompt for www.mydomain.com/awstats when I place the .htaccess in
> the awstats dir.  The login box comes up but it won't accept my username
> password combo, even though it will accept it when I have the same .htaccess
> file in the www dir.

See:
http://httpd.apache.org/docs/2.2/howto/htaccess.html

Your problem is that you don't have AllowOverride set correctly for
the relevant directory. But beyond that, you probably don't want to be
using .htaccess at all. Just put the directives in the relevant
<Directory> section in httpd.conf.

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