LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 12-31-2004, 03:33 AM   #1
luca2005
LQ Newbie
 
Registered: Dec 2004
Posts: 8

Rep: Reputation: 0
.htaccess


Dear forum,

I'm trying to protect one of the folder on my webserver and after googling few alternatives I've decided to use the .htaccess file and this is what I've done:

edited "/etc/httpd/conf/httpd.conf" as follow:

<Directory "/var/www/html">
Options Indexes Includes FollowSymLinks
AllowOverride all
Allow from from all
Order allow,deny
</Directory>
<Directory "/var/www/icons">
Options Indexes MultiViews
AllowOverride None
Allow from from all
Order allow,deny
</Directory>
<Directory "/var/www/cgi-bin">
Options ExecCGI
AllowOverride None
Allow from from all
Order allow,deny
</Directory>


the .htaccess file contains:

AuthName "Enter Password"
AuthType Basic
AuthUserFile /var/www/html/Mydirectory/.htpasswd
require valid-user

then I've created the "/var/www/html/Mydirectory/.htpasswd" file with the command "htaccess -c .htpasswd username"
then I've successfully entered the password.


Result:

I get promped for username and password when I open the protected pages with Netscape or IE but... for some reason is not authenticating, it keeps asking for username and password.

does any one have any clue on what is causing the authentication to fail???

Any help is appreciated!!!

Thanks in advance.
 
Old 12-31-2004, 04:36 AM   #2
Palacista
LQ Newbie
 
Registered: Oct 2004
Location: London
Distribution: Mandrake
Posts: 5

Rep: Reputation: 0
This other user may have had the same problem (and solution).

http://www.linuxquestions.org/questi...hreadid=263396
 
Old 01-01-2005, 07:38 PM   #3
luca2005
LQ Newbie
 
Registered: Dec 2004
Posts: 8

Original Poster
Rep: Reputation: 0
yes it was a permission problem!

Thank you very much!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
.htaccess Help GUIPenguin Linux - Security 6 02-22-2005 02:25 PM
.htaccess kidestranged Linux - General 1 01-26-2004 10:18 AM
Htaccess DoobyWho Linux - General 4 04-28-2003 01:01 PM
.htaccess raek Linux - Newbie 1 08-17-2002 11:53 PM
.htaccess bretthoward Linux - Security 5 04-02-2001 03:33 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:16 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration