Can reach domain, but not the content!

Discussion in 'Installation/Configuration' started by Ohem, May 17, 2007.

  1. Ohem

    Ohem New Member

    I've added a site without a problem and can reach it my domain and as well geting the "Welcome to" page on both, but the funny thing is: if i type i come directly to the web content I'v uploaded a bit earlier (as well without www). I mean, shouldn't Apache/ISPConfig sense if there's content and override the page?

    The web content itself runs just fine, both PHP and MySQL.


    Okay by adding following line: "Directory Index.php" i bypassed the "Welcome Screen", but doing this everytime a new site is added?
    Last edited: May 17, 2007
  2. edge

    edge Active Member Moderator

    When uploading a new site, remove the "created by ISPconfig Welcome to" index.html file.

    After that your own index.php file will take it over..
  3. torusturtle

    torusturtle ISPConfig Developer ISPConfig Developer

    the setting in apache2.conf sets the order in which sites will be selected.
    less /etc/apache2/apache2.conf | grep DirectoryIndex
    (for Ubuntu; other distros might have another directory structure)

    I prefere
    DirectoryIndex index.html index.htm index.shtml index.cgi index.php index.php3 index.php index.xhtml
    In this case you would have to delete index.html if you want ISPConfig to load index.php or you can edit the configuration file and move index.php before index.html
  4. Ohem

    Ohem New Member

    That's the wierd thing, i deleted index.html from the beginning.

    That's one solution, but i don't like improvising.
  5. falko

    falko Super Moderator ISPConfig Developer

    You can change the DirectoyIndex directly in ISPConfig. It's on the Options tab of the web site settings in ISPConfig.

    Otherwise, can you post the output of
    ls -la /path/to/document_root
    of that web site?

Share This Page