LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 08-26-2003, 07:51 AM   #1
quozt
Member
 
Registered: Jul 2003
Location: Leeds
Distribution: Knoppix
Posts: 60

Rep: Reputation: 15
Forbidden


no matter what i do with apache everytime i go to localhost i get

Forbidden

You don't have permission to access / on this server.

Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request.
 
Old 08-26-2003, 08:06 AM   #2
tangle
Senior Member
 
Registered: Apr 2002
Location: Smithville, TN
Distribution: Slackware
Posts: 1,749

Rep: Reputation: 71
Did you set the local permissions right?
 
Old 08-26-2003, 08:10 AM   #3
quozt
Member
 
Registered: Jul 2003
Location: Leeds
Distribution: Knoppix
Posts: 60

Original Poster
Rep: Reputation: 15
the folder is chmoded 777 its owned by user nobody and group apache
 
Old 08-26-2003, 08:12 AM   #4
tangle
Senior Member
 
Registered: Apr 2002
Location: Smithville, TN
Distribution: Slackware
Posts: 1,749

Rep: Reputation: 71
What about the page you are trying to view?
 
Old 08-26-2003, 08:14 AM   #5
quozt
Member
 
Registered: Jul 2003
Location: Leeds
Distribution: Knoppix
Posts: 60

Original Poster
Rep: Reputation: 15
the same cmod and permisson
 
Old 08-26-2003, 08:33 AM   #6
tangle
Senior Member
 
Registered: Apr 2002
Location: Smithville, TN
Distribution: Slackware
Posts: 1,749

Rep: Reputation: 71
Do a port scan and see if port 80 is open. Also make sure that there is not a firewall running.
 
Old 08-26-2003, 08:40 AM   #7
quozt
Member
 
Registered: Jul 2003
Location: Leeds
Distribution: Knoppix
Posts: 60

Original Poster
Rep: Reputation: 15
i can access webmin from a remote place how do i do a port scan
 
Old 08-26-2003, 09:03 AM   #8
tangle
Senior Member
 
Registered: Apr 2002
Location: Smithville, TN
Distribution: Slackware
Posts: 1,749

Rep: Reputation: 71
Got www.insecure.org and download nmap. Once downloaded and installed type:
nmap <ip address of server>

That will scan the ports open.
Also at the command line type iptables -L , if a long list goes by then you have iptables (firewall) running.
 
Old 08-26-2003, 09:20 AM   #9
quozt
Member
 
Registered: Jul 2003
Location: Leeds
Distribution: Knoppix
Posts: 60

Original Poster
Rep: Reputation: 15
Port State Service
21/tcp open ftp
22/tcp open ssh
80/tcp open http
111/tcp open sunrpc
443/tcp open https
6000/tcp open X11
10000/tcp open snet-sensor-mgmt
 
Old 08-26-2003, 09:25 AM   #10
tangle
Senior Member
 
Registered: Apr 2002
Location: Smithville, TN
Distribution: Slackware
Posts: 1,749

Rep: Reputation: 71
Is it a plain html web page you are trying to view?
 
Old 08-26-2003, 09:28 AM   #11
quozt
Member
 
Registered: Jul 2003
Location: Leeds
Distribution: Knoppix
Posts: 60

Original Poster
Rep: Reputation: 15
yeah even when i type in the address e.g.

http://80.6.163.5/index.htm

Forbidden

You don't have permission to access /index.htm on this server.

Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request.
Apache/2.0.40 Server at pr Port 80

or

http://localhost/index.htm

Forbidden

You don't have permission to access /index.htm on this server.

Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request.
Apache/2.0.40 Server at pr Port 80
 
Old 08-26-2003, 09:35 AM   #12
DrOzz
Senior Member
 
Registered: May 2003
Location: Sydney, Nova Scotia, Canada
Distribution: slackware
Posts: 4,185

Rep: Reputation: 60
in your ...conf/httpd.conf file is there a string:
Code:
<Files ~>
?
if so remove and replace it with :
Code:
<Files ~ "^\.ht">
and restart server.
 
Old 08-26-2003, 09:39 AM   #13
quozt
Member
 
Registered: Jul 2003
Location: Leeds
Distribution: Knoppix
Posts: 60

Original Poster
Rep: Reputation: 15
i carnt find that string i can post the file fi you want
 
Old 08-26-2003, 09:51 AM   #14
tangle
Senior Member
 
Registered: Apr 2002
Location: Smithville, TN
Distribution: Slackware
Posts: 1,749

Rep: Reputation: 71
It is usually in the /var/www/htdocs. I think that is is a permission problems or that the index.html in not in the directory that apache look in. Did you change anything in apache?
 
Old 08-26-2003, 11:29 AM   #15
quozt
Member
 
Registered: Jul 2003
Location: Leeds
Distribution: Knoppix
Posts: 60

Original Poster
Rep: Reputation: 15
no i found the files...just theres not that code in it
 
  


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
403 Forbidden patpawlowski Linux - Newbie 1 04-26-2005 09:20 AM
forbidden error? cz1179 Linux - General 1 01-05-2005 05:59 PM
Forbidden Problem, Please alejandroye Linux - Software 1 11-05-2004 09:16 AM
403 Forbidden??? morbo Linux - Networking 11 07-04-2002 10:17 AM
Forbidden! jeucken Linux - Newbie 1 05-12-2002 01:09 PM

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

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