LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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 07-15-2003, 04:26 AM   #1
rooster13
LQ Newbie
 
Registered: Jul 2003
Posts: 5

Rep: Reputation: 0
Apache problems


I succesfully installed Apache and got it runnig for several days. Now I tried to make one directory password protected.

I made a .htaccess-file
AuthUserFile /var/www/temp/.htpasswd
AuthGroupFile /dev/null
AuthName "Saved"
AuthType Basic
<Limit GET>
require user username
</Limit>

and then
/usr/local/apache/bin/htpasswd -c .htpasswd username
while being in the "temp" directory.
After doing those things the apache doesn´t respond while trying to access with a web browser. It just gives me the timeout message. Apache is running and restarted several times after the unlucky configuring, nothing helps. Hope you guys might know what´s wrong with it.
 
Old 07-15-2003, 07:56 AM   #2
Kman_2nd
LQ Newbie
 
Registered: Jul 2003
Distribution: Mandrake Linux 9.1
Posts: 4

Rep: Reputation: 0
My wild guess is that your newly created .htaccess file is denying apache access to the /tmp directory. Remove it from /tmp and restart apache..?

[edit]ok.. ehm.. whoops, didn't read your post all too well

Isn't there anything in the log (/var/log/httpd/error_log ?) about this?
[/edit]


Last edited by Kman_2nd; 07-15-2003 at 12:26 PM.
 
Old 07-15-2003, 10:27 AM   #3
jstu
Member
 
Registered: Jan 2002
Distribution: slackware
Posts: 193

Rep: Reputation: 30
Did you set the allow override directive for that directory

AllowOverride AuthConfig
 
Old 07-15-2003, 10:38 AM   #4
emence
Member
 
Registered: Jun 2003
Location: Springfield, MO
Distribution: RedHat/Slackware
Posts: 81

Rep: Reputation: 15
can you give us a bigger exerpt of you httpd.conf file
 
Old 07-16-2003, 12:17 AM   #5
rooster13
LQ Newbie
 
Registered: Jul 2003
Posts: 5

Original Poster
Rep: Reputation: 0
Well, I got it running again, but it doesn't accept my passwd. I do have

<Directory /var/www/temp>
AllowOverride AuthConfig
</Directory>

added to my httpd.conf file

Actually when I type my password incorrectly it just asks again, but when I get it right, I get message like this:


Forbidden
You don't have permission to access /temp/ on this server.
--------------------------------------------------------------------------------
Apache/1.3.27 Server at xxxxxxxxxxxxxx.org Port 80

Is there something wrong with my file permissions, the directory is owned by the user trying to access it through web browser?

Last edited by rooster13; 07-16-2003 at 12:55 AM.
 
Old 07-16-2003, 09:02 AM   #6
jstu
Member
 
Registered: Jan 2002
Distribution: slackware
Posts: 193

Rep: Reputation: 30
Check apache's error_log.
 
Old 07-16-2003, 11:41 PM   #7
rooster13
LQ Newbie
 
Registered: Jul 2003
Posts: 5

Original Poster
Rep: Reputation: 0
Thanks for everybody, I got it running. The problem was a missing index.html because I wanted to get a directory listning w/o any webpage. Didn't figure that out yet, but at least it's working in a sort of way I wanted.... If one of you guys know how to get the directory listning, I'd be most willing to hear how to do it.
 
  


Reply



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 problems root3d Linux - Software 5 03-08-2004 04:26 PM
Apache problems BrettPower Linux - Networking 3 03-06-2004 10:52 PM
Apache Problems ASP Linux - Software 1 10-14-2003 02:17 PM
Apache virtualhost problems, apache install problems nyroc Linux - Software 2 06-09-2003 11:16 PM
Apache problems RecoilUK Linux - Networking 6 07-13-2001 06:42 PM

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

All times are GMT -5. The time now is 05:55 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