Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
07-15-2003, 04:26 AM
|
#1
|
LQ Newbie
Registered: Jul 2003
Posts: 5
Rep:
|
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.
|
|
|
07-15-2003, 07:56 AM
|
#2
|
LQ Newbie
Registered: Jul 2003
Distribution: Mandrake Linux 9.1
Posts: 4
Rep:
|
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.
|
|
|
07-15-2003, 10:27 AM
|
#3
|
Member
Registered: Jan 2002
Distribution: slackware
Posts: 193
Rep:
|
Did you set the allow override directive for that directory
AllowOverride AuthConfig
|
|
|
07-15-2003, 10:38 AM
|
#4
|
Member
Registered: Jun 2003
Location: Springfield, MO
Distribution: RedHat/Slackware
Posts: 81
Rep:
|
can you give us a bigger exerpt of you httpd.conf file
|
|
|
07-16-2003, 12:17 AM
|
#5
|
LQ Newbie
Registered: Jul 2003
Posts: 5
Original Poster
Rep:
|
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.
|
|
|
07-16-2003, 09:02 AM
|
#6
|
Member
Registered: Jan 2002
Distribution: slackware
Posts: 193
Rep:
|
Check apache's error_log.
|
|
|
07-16-2003, 11:41 PM
|
#7
|
LQ Newbie
Registered: Jul 2003
Posts: 5
Original Poster
Rep:
|
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.
|
|
|
All times are GMT -5. The time now is 12:32 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|