Apache Server configuration support - password protect not working...

This is Interesting: Free IT Magazines  
Home > Archive > Apache Server configuration support > May 2006 > password protect not working...





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author password protect not working...
onlineviewer

2006-05-17, 7:17 pm

Hello All,

I am having some problems trying to password protect my apache web
server.
I have apache 1.3 installed in /opt/csw/apache. Here is my .htaccess
file
which is in /opt/csw/apache/htdocs and it contains:

AuthType Basic
AuthName "Restricted Files"
AuthUserFile /export/home/root/password_file
Require valid-user

Here is my /export/home/root/password_file:
User01:1FGfJcPdnWAXV

Both files are owned by the same user the apache web server, and are
executeable.
Any suggestions ?

Thanks,

Davide Bianchi

2006-05-18, 7:22 am

On 2006-05-17, onlineviewer <lancerset@gmail.com> wrote:
> I am having some problems trying to password protect my apache web


Meaning of "problems" ? Do you get a password prompt? You DO NOT get
a password prompt? The password is not recognized?

> Any suggestions ?


I wish I had one, but my crystal ball is out of order...

Davide

--
It's spelled Linux, but it's pronounced `Not Windows'
It's spelled Windows, but it's pronounced `Aieeeeeeee!'
-- Shannon Hendrix
onlineviewer

2006-05-18, 1:17 pm

no password prompt...

Davide Bianchi

2006-05-18, 1:17 pm

On 2006-05-18, onlineviewer <lancerset@gmail.com> wrote:
> no password prompt...


First thing that came to my mind is that you miss the 'AllowOverride'
bit in httpd.conf, so the htaccess file isn't looked at at all. Second
think is that the password file is not found or can't be read. Check the
error_log file for that.

Davide

--
E-mail is broken. No, not just right now, the last few years. Don't thank
me, thank the spammers. - Koos van den Hout on A.S.R.
onlineviewer

2006-05-18, 1:17 pm

AllowOverride was set to None

Thanks.,

Robert Ionescu

2006-05-18, 7:16 pm

onlineviewer wrote:
> AllowOverride was set to None


But you did set it now to AuthConfig?

BTW: Why are you using a .htaccess file here and not a <directory...>
section in httpd.conf?
http://httpd.apache.org/docs/2.0/ho...ccess.html#when

--
Robert
onlineviewer

2006-05-19, 1:18 pm

Yes i set it to AuthConfig and it works. I never considered using the
<directory> method.
I'll check it out. Thanks for the info...

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2009 webservertalk.com