RE: [users@httpd] .htaccess

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

 



> -----Original Message-----
> From: Dave Challener [mailto:challene@xxxxxxxxxxxxx] 
> Sent: Monday, November 06, 2006 4:34 PM
> To: users@xxxxxxxxxxxxxxxx
> Subject: [users@httpd] .htaccess
> 
> 
> 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. 

You didn't need to - a simple apache graceful would've been enough...

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

So authentication is working...


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

First, remove the <Limit> tags - pointless and unnecessary.
Second, what exactly does "it won't accept..." mean? What *precisely*
happens in the browser and error log?

Rgds,
Owen Boyle
Disclaimer: Any disclaimer attached to this message may be ignored. 


> 
> 
> Any ideas?   
> 
> 
> 
>
 
 
This message is for the named person's use only. It may contain confidential, proprietary or legally privileged information. No confidentiality or privilege is waived or lost by any mistransmission. If you receive this message in error, please notify the sender urgently and then immediately delete the message and any copies of it from your system. Please also immediately destroy any hardcopies of the message. You must not, directly or indirectly, use, disclose, distribute, print, or copy any part of this message if you are not the intended recipient. The sender's company reserves the right to monitor all e-mail communications through their networks. Any views expressed in this message are those of the individual sender, except where the message states otherwise and the sender is authorised to state them to be the views of the sender's company.

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