Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Protecting page with password on Apache 1.3.27

Status
Not open for further replies.

siswjh

MIS
Dec 6, 2001
63
US
I did the htpasswd -c / as per instructions on apache.org then chmod 640 on directory passwd and changed group to nogroup. I added this:

Code:
<Directory /[URL unfurl="true"]www/htdocs/proftp-admin>[/URL]
   AuthType Basic
   AuthName &quot;Proftp Admin&quot;
   AuthUserFile /[URL unfurl="true"]www/passwd/password[/URL]
   Require user cmgadmin jesse
</Directory>
to the httpd.conf file and restarted the server. It's not working though. I look in the log and it says I don't have permission. As I said above I chmoded to 640 the owner is root and group is nogroup on / What am I doing wrong.

This is on a solaris9 box.
 
One thing I can see is where you said:

I did the htpasswd -c / as per instructions

This should be htpasswd -c / <space> user
where password will be the file that holds the username and hashed password and user is the username of a person that should have access

As in htpasswd -c / <space> user
passwd: 12345
repete passwd: 12345

Then
I'm not sure about teh settings that you have put into httpd.conf as I usually add a .htaccess file into the protected directory.

But try this first.

Good Luck,
Laurie.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top