[users@httpd] .htaccess pages refuse to work, AllowOverride or not

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

 



I've been trying to wrestle answers out of Google for two days now, but I finally decided that I have done enough looking to be a worthy poster of your newsgroup. ;)

Basically, I want an authentication system where one of those nifty username and password dialog boxes appear and ask for a password. I know it isn't the most secure thing in the world, but it is at least something.

I have written down the 3 changes I've made to the configuration since a fresh install.

1. Added these lines to the bottom of the /etc/apache2/apache2.conf configuration file. /var/www/ is the root directory of my website.
<Directory "/var/www/">
        AllowOverride AuthConfig
        Options None
</Directory>
2. Wrote this .htaccess file in /var/www/:
AuthType Digest
AuthName "Private"
AuthDigestFile /var/www/.htpasswd
Require valid-user
3. Ran the command sudo htdigest -c /var/www/.htpasswd <DOMAIN> jacob
NOTE: I replaced <DOMAIN> with the address of my website minus the http part. 4. Created an empty index2.html file in /var/www/, and opened it in a browser.


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