LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 01-25-2006, 05:54 AM   #1
krishvij
Member
 
Registered: Feb 2005
Location: India
Distribution: RHEL 3
Posts: 108

Rep: Reputation: 15
Not able to access webpage on apache


We are trying to access a specified directory with user name and password using /etc/httpd/conf/httpd.conf. file.
I have created .htpasswd and .htaccess file in the same directory path .
The problem is when i am trying to access the directory , it displays username and password window. Even i give the correct username and password , it has not entered into the directory.It again displays the username and password window.

The .htaccess file has following lines,

AuthName "restricted stuff"
AuthType Basic
AllowOverride AuthConfig
AuthUserFile /var/www/html/java/.htpasswd
require valid-user
satisfy all

and also change the permissions of 644 to .htpasswd, .htaccess files.

Please clarify the doubts as soon as possible.

Thanks in advance,
Viji.
 
Old 01-25-2006, 11:35 PM   #2
spooon
Senior Member
 
Registered: Aug 2005
Posts: 1,755

Rep: Reputation: 51
How did you make your .htpasswd file? Did you use the "htpasswd" command, or with some other method?

Also, you shouldn't have a "AllowOverride" in your .htaccess file; it can only go in the httpd.conf, but it's probably already allowed by default anyway.
 
Old 01-27-2006, 04:59 AM   #3
krishvij
Member
 
Registered: Feb 2005
Location: India
Distribution: RHEL 3
Posts: 108

Original Poster
Rep: Reputation: 15
Thank you for your response.
I hav created .htpasswd file by using the command
# htpasswd -c <location of htpasswd file> <user_name>

And also i hav placed htaccess and htpasswd files in the same directory.
I removed the line "Allowoverride Authconfig " from htaccess file. But still i am not able to view the web page even if i give correct username and password.

Pls Help me.

Thanks in advance.
 
  


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
Apache doesn't display php webpage rover SUSE / openSUSE 2 11-08-2004 11:07 AM
Can Apache host more than one webpage? Jestrik Linux - Networking 2 03-29-2004 05:15 PM
executing script via webpage through apache server feetyouwell Linux - Software 7 02-08-2004 04:23 PM
Webpage loads slowly using virtual hosts in Apache 2.0 Linux Redhat 9 dste0713 Linux - General 0 01-21-2004 01:35 PM
Deny Webpage Access thebrave65 Linux - Security 5 05-20-2003 01:51 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 05:38 PM.

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