LinuxQuestions.org
Help answer threads with 0 replies.
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 02-17-2005, 08:42 PM   #1
eyebrowsoffire
Member
 
Registered: Sep 2004
Location: Goleta, CA
Distribution: Fedora Core 6
Posts: 55

Rep: Reputation: 15
Question Two Apache http server problems...


I am trying to set up an http server from my computer running FC3, but have run into two problems:
1) Every time I try to access the server from itself, I get the welcome test page, despite the fact that I have a test index.html page in the folder. When I request for that page specifically, or any page I put in the folder, it gives me a 403 Forbidden error and also tells me:
Code:
Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request.
I first thought that I had done something wrong with permissions, so I made a new user named "www" and made "www" the owner of the folder "/var/www/html" (the root directory of the server) as well of the entire folder "/var/www". This still did not fix my problem...

2) Secondly, I cannot access even this forbidden page from computers outside my network. I set up my router to forward port 80 to my computer, but that didn't seem to work. Every computer I have tried to access it from just times out after a while. I have heard that some ISPs try to discourage http servers by blocking requests to port 80, but I don't know if that is true.

I'm not sure what, if any, configuration or log files to post here, but if anyone has any suggestions, please let me know what would be helpful. I'm relatively new to this stuff, so please bear with me.
 
Old 02-17-2005, 09:18 PM   #2
bulliver
Senior Member
 
Registered: Nov 2002
Location: Edmonton AB, Canada
Distribution: Gentoo x86_64; Gentoo PPC; FreeBSD; OS X 10.9.4
Posts: 3,760
Blog Entries: 4

Rep: Reputation: 78
1) this could be either a unix file permission problem, or a problem with your apache.conf file.

First of all, look for a line in apache's conf file that looks like this:
Code:
 <Directory /var/www/localhost/htdocs>
In this example '/var/www/localhost/htdocs' is your DocumentRoot. Now make sure that these lines are contained in that directive block:
Code:
      Order allow,deny
      Allow from all
If they are there, then it must be the file permissions problem. You need to make sure that all the files in your DocumentRoot are readable to the user that apache runs as. This depends, but is usually 'apache' or 'www'.

2) This may be a name-resolving issue. To see, use the ip address of your server to access ie: type 'http://192.168.0.101/' into a browser, where '192.168.0.101' is the IP address of your fedora box running apache.

If you do not have a FQDN then you cannot access your apache server any other way except by IP address from outside your network. You can, however, use a service like no-ip.com to get a FQDN for free.
 
Old 02-17-2005, 10:38 PM   #3
eyebrowsoffire
Member
 
Registered: Sep 2004
Location: Goleta, CA
Distribution: Fedora Core 6
Posts: 55

Original Poster
Rep: Reputation: 15
I checked the config file and it appears to have those two lines in there, but I can't imagine this being a permissions problem, considering that the "www" user can at least read almost everything in the filesystem, and the "/var/www" folder and all its subfolders and files belong to the "www" user, so there is full read and write access there. I'm stumped as to what it might be.

As for the second problem, I can access the "forbidden" screens from any computer inside my network using my local IP address, but when I put my WAN IP address in, it just times out. I have the router set up to forward port 80, so I'm not sure what the problem is.
 
  


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: http://localhost (work) http://ipaddress (not working) sarmad Linux - Newbie 7 02-05-2013 07:47 AM
Setting up Apache HTTP server Micro420 Linux - Networking 32 03-26-2005 04:53 AM
http server - Apache alternative Xa! Linux - Networking 2 02-07-2005 08:18 AM
[apache http server] directory hylke Linux - Software 8 08-02-2004 02:02 AM
Apache HTTP Server on Redhat 9 g-man76 Linux - Laptop and Netbook 9 08-01-2003 09:21 PM

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

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