LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 11-05-2006, 09:42 PM   #1
LaughingBovine
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...
Code:
[geoff@bovinious ~]$ cd /var/www/html
[geoff@bovinious html]$ ls
index.html
I'm running FC5.

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

<Directory />
    Options FollowSymLinks
    AllowOverride None
</Directory>

<Directory "/var/www/html">
    Options Indexes FollowSymLinks
    AllowOverride None
    Order allow,deny
    Allow from all
</Directory>
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
macemoneta
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: 344Reputation: 344Reputation: 344Reputation: 344
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:

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


Reply

Tags
apache


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

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

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