LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 07-30-2006, 05:12 PM   #1
pioniere
Member
 
Registered: Dec 2002
Location: Vancouver Island, Canada
Distribution: Slackware
Posts: 46
Blog Entries: 1

Rep: Reputation: 15
Question Unable to access website from local network


I am running Apache 1.3.33 with several Virtual Hosts. Up until a few days ago, I was able to access all hosts either from within my local network (which is behind a firewall), or from other remote locations (i.e., internet cafes, from VPNs, etc.)

Now, for whatever reason, there is one of my Virtual Host sites that I cannot access from within my local network using the FQDN. The other websites I can get to just fine using their FQDNs, but this particular one can only be accessed from outside the local network.

The Apache access logs show that I am getting a 403 (Forbidden) error when trying to access it from the local network, but I have no idea what is causing this or how to fix it. The pages that seem to be having the problem are .php pages (static .html pages load just fine). However, it is only this one site that is affected. The other sites also have .php pages, and they can be accessed without any problems.

This problem is driving me nuts. I have checked httpd.conf, routing, and the firewall for some reason, but have been unable to come up with anything.

Can anyone offer any advice on how to correct this issue? I will be happy to supply whatever is needed.

I hope someone can help me with this maddening problem!


 
Old 07-30-2006, 05:52 PM   #2
peter_robb
Senior Member
 
Registered: Feb 2002
Location: Szczecin, Poland
Distribution: Gentoo, Debian
Posts: 2,458

Rep: Reputation: 48
Have you checked file ownerships and permissions between directories?

Add some more logging and look at the errors log file,
or start httpd with the -X option and watch for debug messages.
 
Old 07-30-2006, 06:40 PM   #3
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
Do you have a .htaccess file in the directory that's causing you problems?
 
Old 07-30-2006, 08:03 PM   #4
pioniere
Member
 
Registered: Dec 2002
Location: Vancouver Island, Canada
Distribution: Slackware
Posts: 46

Original Poster
Blog Entries: 1

Rep: Reputation: 15
I have checked and double-checked permissions, but haven't discovered any problems. Error logging hasn't really done any good, since this isn't really an error condition. The 403 messages wouldn't normally be indicative of a problem (except in this case!). The debugging option sounds interesting, but I'm not sure where it would place the logs I would need to examine.

I also looked for .htaccess files in the directory. There are none.

Any other suggestions/advice would be appreciated. Also, if you have any additional details on how to enact and access debug on httpd, it would be appreciated.
 
Old 07-30-2006, 08:11 PM   #5
peter_robb
Senior Member
 
Registered: Feb 2002
Location: Szczecin, Poland
Distribution: Gentoo, Debian
Posts: 2,458

Rep: Reputation: 48
The -X option when starting apache from a command line stops it from detaching from the terminal, and any messages are printed on the terminal.
 
Old 07-30-2006, 08:30 PM   #6
pioniere
Member
 
Registered: Dec 2002
Location: Vancouver Island, Canada
Distribution: Slackware
Posts: 46

Original Poster
Blog Entries: 1

Rep: Reputation: 15
I stopped Apache using apachectl, and then tried running httpd -X from a terminal,and then tried accessing the site using my browser; however no messages were produced.
 
Old 07-30-2006, 08:47 PM   #7
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
Does

# tail /var/log/httpd/error_log

show anything?
 
Old 07-30-2006, 09:08 PM   #8
peter_robb
Senior Member
 
Registered: Feb 2002
Location: Szczecin, Poland
Distribution: Gentoo, Debian
Posts: 2,458

Rep: Reputation: 48
In your httpd.conf you will have specified an ErrorLog file.

tail -f the errorlog file
 
Old 07-31-2006, 09:09 AM   #9
pioniere
Member
 
Registered: Dec 2002
Location: Vancouver Island, Canada
Distribution: Slackware
Posts: 46

Original Poster
Blog Entries: 1

Rep: Reputation: 15
Well, this is rather embarrassing, but it turns out that it was the web application itself that was preventing me from hitting the site. For whatever reason, it had banned my own internal firewall IP address. The application was the only place I hadn't looked (after all, why would *it* ban *me*?), so I feel kind of stupid at the moment.

I want to thank everyone who responded to this post; I certainly know the ins and outs of troubleshooting Apache logs much better now, although I feel badly that I probably wasted your time. In any case, thanks!
 
  


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
Unable to access a particular website jdavis72 Linux - Networking 3 06-22-2006 05:33 PM
restricting website access from local machine Stridier Linux - Networking 9 01-30-2006 04:26 AM
Unable to access local virtual hosts zeroGsa Linux - Networking 3 12-22-2004 01:39 PM
Unable to access to a website on apache web server bisbane Linux - Networking 3 07-11-2001 09:18 AM
Unable to access to a website on apache web server bisbane General 3 07-10-2001 11:03 AM

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

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