HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Installation/Configuration (http://www.howtoforge.com/forums/forumdisplay.php?f=16)
-   -   Domain going to /var/www root not appropriate sub-directory (http://www.howtoforge.com/forums/showthread.php?t=26793)

runbuck 12th September 2008 20:39

Domain going to /var/www root not appropriate sub-directory
 
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?

runbuck 12th September 2008 21:13

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>

#

runbuck 12th September 2008 21:14

Fixed
 
Needed to include this:

Include /etc/apache2/vhosts/Vhosts_ispconfig.conf

In:

/etc/apache2/apache2.conf

At the bottom.


All times are GMT +2. The time now is 12:53.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.