Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Server
User Name
Linux - Server This forum is for the discussion of Linux Software used in a server related context.


  Search this Thread
Old 11-05-2006, 09:42 PM   #1
LQ Newbie
Registered: Oct 2006
Posts: 5

Rep: Reputation: 0
Apache Won't Allow Access to Pages

Hi, i'm having a bit of trouble with apache.
I am using Apache 2.2.2, and when I navigate to http://localhost/index.html, i get a 403 Forbidden. If i just navigate to http://localhost/ i get the Apache first-install page.

In my document root all there is is...
[geoff@bovinious ~]$ cd /var/www/html
[geoff@bovinious html]$ ls
I'm running FC5.

Among the lines in my (mostly default) httpd.conf are...
Listen 80
DocumentRoot "/var/www/html"

<Directory />
    Options FollowSymLinks
    AllowOverride None

<Directory "/var/www/html">
    Options Indexes FollowSymLinks
    AllowOverride None
    Order allow,deny
    Allow from all
I don't really understand why this would be happening. I changed file permissions for the html/ directory and the index.html file so all could access.

Any help would be appreciated, thanks.
Old 11-05-2006, 10:09 PM   #2
Senior Member
Registered: Jan 2005
Location: Manalapan, NJ
Distribution: Fedora x86 and x86_64, Debian PPC and ARM, Android
Posts: 4,593
Blog Entries: 2

Rep: Reputation: 332Reputation: 332Reputation: 332Reputation: 332
If you have SELinux enabled, I suspect you moved the file into /var/www/html instead of copying it. By moving it, you maintained the source directory file context, instead of inheriting the destination directory context. To confirm this, check /var/log/messages or /var/log/audit/audit.log - you should see an AVC message each time the file is accessed.

To correct the problem:

chcon system_u:object_r:httpd_sys_content_t /var/www/html/index.html
For more information on FC5 SELinux, check this document.



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
How do I access 'Man Pages'? randell6564 Mandriva 12 01-15-2006 03:49 AM
Cannot access external pages apache363 Linux - Software 5 11-14-2004 01:15 PM
how to access man pages using C++ ? ambitionless Programming 4 09-27-2004 02:25 AM
howto access man and info pages? SciYro Programming 5 07-23-2004 11:21 AM
I can not access mu sip web pages. Everything else works. dnw Linux - Networking 2 04-28-2002 01:41 AM > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 11:31 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration