Domain going to /var/www root not appropriate sub-directory

Discussion in 'Installation/Configuration' started by runbuck, Sep 12, 2008.

  1. runbuck

    runbuck New Member

    Greetings. Trying to update a site and when I hit the domain it takes me to the /var/www/index.html not the appropriate subfolder tied to the domain. I checked the vhosts file @

    /etc/apache2/vhosts# vi Vhosts_ispconfig.conf

    and everything looked good (saw the domain defined, root directory defined as it should be). Any ideas on what conf file I messed up that is overriding the ISPConfig Vhosts file?
     
  2. runbuck

    runbuck New Member

    Here is the Vhosts_ispconfig.conf file

    This is the comment for the site I am talking about.

    ######################################
    # Vhost: www.leveragency.com:80
    ######################################
    #
    #
    <VirtualHost 192.168.0.188:80>
    ServerName www.leveragency.com:80
    ServerAdmin webmaster@leveragency.com
    DocumentRoot /var/www/web10/web
    ServerAlias leveragency.com
    DirectoryIndex index.html index.htm index.php index.php5 index.php4 index.php3 index.shtml index.cgi index.pl index.jsp Default.htm default.htm
    ErrorLog /var/www/web10/log/error.log
    Alias /error/ "/var/www/web10/web/error/"
    ErrorDocument 400 /error/invalidSyntax.html
    ErrorDocument 401 /error/authorizationRequired.html
    ErrorDocument 403 /error/forbidden.html
    ErrorDocument 404 /error/fileNotFound.html
    ErrorDocument 405 /error/methodNotAllowed.html
    ErrorDocument 500 /error/internalServerError.html
    ErrorDocument 503 /error/overloaded.html
    AliasMatch ^/~([^/]+)(/(.*))? /var/www/web10/user/$1/web/$3
    AliasMatch ^/users/([^/]+)(/(.*))? /var/www/web10/user/$1/web/$3
    </VirtualHost>
    #
    #


    And the header of the file ... global statements in the same file is:
    ###################################
    #
    # ISPConfig vHost Configuration File
    # Version 1.0
    #
    ###################################
    #
    NameVirtualHost 192.168.0.1:80
    <VirtualHost 192.168.0.1:80>
    ServerName localhost
    ServerAdmin root@localhost
    DocumentRoot /var/www/sharedip
    </VirtualHost>
    NameVirtualHost 192.168.0.188:80
    <VirtualHost 192.168.0.188:80>
    ServerName localhost
    ServerAdmin root@localhost
    DocumentRoot /var/www/sharedip
    </VirtualHost>

    #
     
  3. runbuck

    runbuck New Member

    Fixed

    Needed to include this:

    Include /etc/apache2/vhosts/Vhosts_ispconfig.conf

    In:

    /etc/apache2/apache2.conf

    At the bottom.
     

Share This Page