LinuxQuestions.org
Help answer threads with 0 replies.
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 10-05-2004, 05:06 PM   #1
jules_fraser
Member
 
Registered: Nov 2003
Location: London, UK
Distribution: Gentoo, RH (and, yes: M$2k)
Posts: 77

Rep: Reputation: 15
Apache2, pages "forbidden" from internet, not localnet.


I can access certain web pages locally on the local net, but not from the Internet. At this point I get the "forbidden" message. Any ideas or clues? I have ensured that "Allow All" is available on the directive for the document root and this directory also is Apache owning. What else should I be looking at?
 
Old 10-05-2004, 07:53 PM   #2
otisthegbs
Member
 
Registered: May 2003
Location: Vancouver
Distribution: RH9
Posts: 100

Rep: Reputation: 15
Sorry, I dont quite understand,

You run a webserver
You CAN access the pages from you server locally
You CANNOT access the pages from a remote location connection to your server

is this right?

if so, some ISP block port 80, nmap your machine from a remote host and find out
--or--
you have a firewall up
 
Old 10-05-2004, 11:10 PM   #3
jules_fraser
Member
 
Registered: Nov 2003
Location: London, UK
Distribution: Gentoo, RH (and, yes: M$2k)
Posts: 77

Original Poster
Rep: Reputation: 15
I knew this would be your answer, but not quite! The server also hosts my mail which users access vi Webmail also from the same server so I know that port 80 is open and available for use.

The error I get:

Code:
Directory index forbidden by rule:
The directive for the the DocumentRoot:

Code:
<Directory "/usr/html">
    Options FollowSymLinks
    Options Indexes Includes
    AllowOverride Indexes Limit Authconfig Fileinfo
    Order allow,deny
    Allow from All
</Directory>
Can you see anything wrong that I should be looking at?
 
Old 10-07-2004, 12:29 PM   #4
otisthegbs
Member
 
Registered: May 2003
Location: Vancouver
Distribution: RH9
Posts: 100

Rep: Reputation: 15
my guess would be the allowoverride authconfig, you don't need any authentication do you?
 
Old 10-07-2004, 12:45 PM   #5
jules_fraser
Member
 
Registered: Nov 2003
Location: London, UK
Distribution: Gentoo, RH (and, yes: M$2k)
Posts: 77

Original Poster
Rep: Reputation: 15
No I don't need the Auto for the sites that I host. In the end I eventually saved all my conf files, erased every sign on Apache on the box and reinstalled and now I am at the same point! Only difference is that the directive below is now listed in the commonapache2.conf file as opposed to the apache2.conf one.

The directive now stands as:

Code:
### Restricted set of options:
###
<Directory />
  Options -All -Multiviews
  AllowOverride None
  <IfModule mod_access.c>
    Order deny,allow
    Allow from all
  </IfModule>
</Directory>
I have yet to add in the document root, but am trying to take things one at a time. Also, I have chmod -R 755 the entire document root. What permissions do you give for your DocumentRoot?

Last edited by jules_fraser; 10-08-2004 at 04:51 AM.
 
  


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 web access "Forbidden" wswartz Linux - Software 21 10-27-2011 10:52 AM
Apache 2, "Forbidden" TazG Linux - Software 2 05-30-2004 07:33 PM
Uploading web pages; get "access forbidden" when I load them in browser! Thermodynamic Linux - Software 1 04-03-2004 05:52 PM
What is correct code for "Include File Function" on .asp pages gregoryfrancis Linux - General 1 02-11-2003 10:49 PM
Cups & gimp-print "No pages found!" Silent1 Linux - Hardware 2 01-17-2003 10:44 AM

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

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