Strange Server Problem...

Discussion in 'Site & Server Administration' started by sandeepdude, Jun 29, 2010.

  1. #1
    Hello Guys..

    I am facing a very strange problem with my server..

    When I visit my site,the site files are displayed in tree structure(My site is located here)

    This usually happens when there is no page with the name index or default or home right?But I have an Index.php page and even then the problem exists..

    This problem persists in all my addon domains websites.

    can anyone figure out what's causing this problem??

    Regards,
    Sandeep
     
    sandeepdude, Jun 29, 2010 IP
  2. Shagoon

    Shagoon Notable Member

    Messages:
    596
    Likes Received:
    20
    Best Answers:
    0
    Trophy Points:
    220
    #2
    In your apache config file you need to find:
    DirectoryIndex

    And add after it:
    index.php

    Resulting in something similar to this:
    DirectoryIndex index.html index.html.var index.php

    Restart apache and you should be good to go.
     
    Shagoon, Jun 29, 2010 IP
    sandeepdude likes this.
  3. sandeepdude

    sandeepdude Well-Known Member

    Messages:
    1,741
    Likes Received:
    69
    Best Answers:
    0
    Trophy Points:
    195
    #3
    I am using a shared hosting...
    So I don't have access to apache config file.I'll request my webhost to do it...

    Thanks for the solution Shagoon..:)
     
    sandeepdude, Jun 29, 2010 IP
  4. Shagoon

    Shagoon Notable Member

    Messages:
    596
    Likes Received:
    20
    Best Answers:
    0
    Trophy Points:
    220
    #4
    I get 404 Error when accessing your site... and also I just noticed they're not using Apache Webserver, they are using LiteSpeed... the best thing you can do right now, since you are using shared hosting, is to contact their support so they can take care of your problem.
     
    Shagoon, Jun 29, 2010 IP