Apache on Fedora can't read index.html

Discussion in 'Apache' started by GregKatz, Apr 12, 2013.

  1. #1
    Hi,

    I'm a beginner at using apache and have recently installed it on fedora 18. I placed some basic code into the index.html page in /var/www/html but when I try localhost I still get the fedora test page. When I try localhost/index.html, I get this message.

    Forbidden

    You don't have permission to access /index.html on this server.



    Permissions for every file or directory in the pathway are either 755 or 777 so I don't know how I have a permission problem. Is there something in the configuration that I could change. Is there a method I could use to check for errors or logs?

    Thanks.
     
    Solved! View solution.
    GregKatz, Apr 12, 2013 IP
  2. #2
    Hi There, Welcome to DP forums. I hope you enjoy your stay here.

    What does your VirtualHost entry shows ? Check apache config carefully. For apache error logs check, /etc/httpd/logs/error_log. This will show you the reason behind the error.
     
    MilesWeb, Apr 13, 2013 IP
  3. GregKatz

    GregKatz Peon

    Messages:
    2
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    1
    #3
    Well, I tried setting up a virtual host and accidentally got localhost to work so...yeah. I'll try to figure out what happened
     
    GregKatz, Apr 15, 2013 IP