[users@httpd] .htaccess

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

 




Hi all.

I am trying to get .htaccess working on my home server.  It is a RedHat distro version of Apache httpd.



I have done 3 things:


1) in the httpd.conf file I have added the following lines:
<Directory "/ddrive/html">

#
# Possible values for the Options directive are "None", "All",
# or any combination of:
#   Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
#
# Note that "MultiViews" must be named *explicitly* --- "Options All"
# doesn't give it to you.
#
# The Options directive is both complicated and important.  Please see
# http://httpd.apache.org/docs-2.0/mod/core.html#options
# for more information.
#
    Options Indexes FollowSymLinks

#
# AllowOverride controls what directives may be placed in .htaccess files.
# It can be "All", "None", or any combination of the keywords:
#   Options FileInfo AuthConfig Limit
#
#    AllowOverride None
     AllowOverride AuthConfig
     Options Indexes FollowSymLinks Includes
#
# Controls who can get stuff from this server.
#
    Order allow,deny
    Allow from all

</Directory>


2) In the subdirectory I wish to password protect itself, I have added a file named .htaccess which contains the following lines:

#Sample .htaccess file for UT Web Central publishers
AuthUserFile /root/SOadmin/.htpasswd
AuthGroupFile /dev/null
AuthName "Authorization Required"
AuthType Basic

<Limit GET>
require valid-user
</Limit>


3) In the subdirectory /root/SOadmin, I used htpasswd to create a file .htpasswd
 (initially I used -c to create the file, then used it without to add passwords)
One password I added was user with password password.

The file is there, it has two users in it, and "user" is indeed one of them.


dchallener:SkuDfI644Y3EM
user:4bV2gKtZ0Whys



I shutdown the system and rebooted, restarted httpd.

I then went to the subdirectory.  It asked me for a userid and password (Hooray!... something is working)

HOWEVER... it won't accept any of the userid / password combinations I give it.


Any ideas?  



[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