LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
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 04-12-2004, 08:51 PM   #1
jkruer01
LQ Newbie
 
Registered: Apr 2003
Distribution: Mandrake 9.2
Posts: 26

Rep: Reputation: 15
Apache 401 The web site is blocked by administrator


Hello,

I am trying to setup my webserver. I am running Mandrake 9.2 and am behind a d-link router. On the d-link router I have a virtual server setup to allow people to get to my linux box. When I access my box with the internal IP address, it pulls up the page correctly. However, when I access it from my external IP address it get the 401 The website is blocked by the administrator.

I did a port scan on my public IP address and port 80 was open. I did a traceroute and all that came up were ******.

Can someone tell me what I am doing wrong.

Thanks,
Jeremy
 
Old 04-12-2004, 10:16 PM   #2
tuxguy
Member
 
Registered: Mar 2004
Location: North Bay, Ontario - CANADA
Distribution: Debian
Posts: 77

Rep: Reputation: 16
You need to add something like this to your httpd.conf file

<Directory /path/to/your/dir/>
AllowOverride All
Allow from all
</Directory>


do a search for the Directory config in the apache docs... this is a very basic setup...

add the above.. then restart the server

Jesse
 
Old 04-13-2004, 01:38 PM   #3
jkruer01
LQ Newbie
 
Registered: Apr 2003
Distribution: Mandrake 9.2
Posts: 26

Original Poster
Rep: Reputation: 15
I added those lines to my httpd.conf file and restarted Apache. It did not work. I removed it from there and added them to my httpd2.conf file and restarted Apache. It still did not work. I put it back in httpd.conf and restarted Apache.

This did not work. Does anyone have any other suggestions?

Also, I just added them to the bottom of the file. Do they have to go into any specific area?

Thanks.
 
Old 04-13-2004, 08:49 PM   #4
tuxguy
Member
 
Registered: Mar 2004
Location: North Bay, Ontario - CANADA
Distribution: Debian
Posts: 77

Rep: Reputation: 16
I am assuming you edited the /path/to/your/dir/ to reflect your path..

and no.. it doesn't matter where in the .conf file it is..as long as it's outside any <blah> </blah> calls.. place it right after the </blah>....

why are you running both apache and apache2 ???

ps... whats ur site's URL?? so I can see the exact error...

on another note... in your d-link router... have you told the router to forward port 80 to your server?

later..

jesse
 
Old 04-14-2004, 11:08 AM   #5
jkruer01
LQ Newbie
 
Registered: Apr 2003
Distribution: Mandrake 9.2
Posts: 26

Original Poster
Rep: Reputation: 15
Yeah, I changed the path to /var/www/html/

I am just running whatever was installed by Mandrake 9.2 by default. How do you tell whether Apache or Apache2 or both is runing?

I just thought about something, should I just put / in the path to Directory? Or do I need to put the whole /var/www/html/ in it?

Yes, I setup my router to forward port 80 to my server.

My url is kruer.dyndns.org

Thanks!
 
Old 04-14-2004, 11:09 AM   #6
jkruer01
LQ Newbie
 
Registered: Apr 2003
Distribution: Mandrake 9.2
Posts: 26

Original Poster
Rep: Reputation: 15
Ok, I just went to my URL and it worked, but I didn't think that I changed anything.

It is now working, but I would still appreciate it if someone could give me the answers to the questions I had.
 
Old 04-14-2004, 01:53 PM   #7
tuxguy
Member
 
Registered: Mar 2004
Location: North Bay, Ontario - CANADA
Distribution: Debian
Posts: 77

Rep: Reputation: 16
Quote:
Originally posted by jkruer01
Ok, I just went to my URL and it worked, but I didn't think that I changed anything.

It is now working, but I would still appreciate it if someone could give me the answers to the questions I had.

I appoligize... I thought I was helping you get the answer... You come here with a problem, with ALOT of possible answers. You have to narrow it down somewhat..

is there a .htaccess file in the /subfolder ? if so that can also give the 401 error.. I found that out by doing a google search for "apache error 401"


Good luck

Jesse
 
Old 04-14-2004, 04:22 PM   #8
jkruer01
LQ Newbie
 
Registered: Apr 2003
Distribution: Mandrake 9.2
Posts: 26

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by tuxguy
I appoligize... I thought I was helping you get the answer... You come here with a problem, with ALOT of possible answers. You have to narrow it down somewhat..

is there a .htaccess file in the /subfolder ? if so that can also give the 401 error.. I found that out by doing a google search for "apache error 401"


Good luck

Jesse
Jesse,

I appologize to you. When I said
Quote:
but I would still appreciate it if someone could give me the answers to the questions I had.
I was refering to my reply directly above where I asked

Quote:
How do you tell whether Apache or Apache2 or both is runing?
I hope that this clears it up. I am sorry if I offended you. I greatly appreciate the response that you gave me. It is what got my webserver running!

Thanks for helping me out!

Thanks!
 
Old 04-14-2004, 05:08 PM   #9
tuxguy
Member
 
Registered: Mar 2004
Location: North Bay, Ontario - CANADA
Distribution: Debian
Posts: 77

Rep: Reputation: 16
Hey no offence taken, was just kinda taken back thats all... glad to see you got it going..

to tell if apache is running... type "ps aux |grep apache"

Later man.

Jesse
 
  


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 started but web site don't work acercatealaluz Linux - Newbie 2 05-25-2005 11:59 AM
Apache-HTML can't open dir on web site comprookie2000 Linux - Networking 4 03-07-2005 03:40 PM
How To: Use Windows Partition for Default Apache 2 Web Site RavenLX Linux - Networking 0 01-18-2005 02:41 PM
i want to connect to icq .But my administrator has blocked it. s_diptiman Linux - Security 3 10-07-2003 08:06 AM
Apache Web site updating? munzza Linux - Newbie 1 05-17-2002 03:51 PM


All times are GMT -5. The time now is 09:42 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration