Virtual host points to incorrect directory

Discussion in 'Installation/Configuration' started by claudioimai, Mar 17, 2016.

  1. claudioimai

    claudioimai Member

    Sorry, I'm really desperate now.

    My server has been online and working correctly for a few years by now.
    Today my main domain started pointing to an incorrect directory, more specifically to /var/www.
    This means that when anyone tries to access my store the server shows the list of domains and webXXX directories from the server instead of any sites.
    Apache is running, since the sites show up is I browse to the domain link.

    I'm now looking for a solution, but if anyone could help it will be more than appreciated!
     
  2. ztk.me

    ztk.me Well-Known Member HowtoForge Supporter

    Shouldn't happen "out of the sudden" - Something had to change in order to let ISPConfig rewrite vhost files.
    Check your vhost file in your apache2 sites-enabled folder.
    To disable DirectoryListing run
    Code:
    a2dismod autoindex
    
    which should be disabled by default in its config anyway at least if someone needs that.

    Check your sites-available for any .err file
    Try changing any option to your main Domain ( switch SSI on / off for example ).
    See if you have any errors in /var/log/ispconfig/cron.log
    Try to remember what could have happened.
     

Share This Page