Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 2 > Installation/Configuration

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 12th September 2008, 19:39
runbuck runbuck is offline
Junior Member
 
Join Date: Nov 2007
Posts: 16
Thanks: 1
Thanked 0 Times in 0 Posts
Default 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?
Reply With Quote
Sponsored Links
  #2  
Old 12th September 2008, 20:13
runbuck runbuck is offline
Junior Member
 
Join Date: Nov 2007
Posts: 16
Thanks: 1
Thanked 0 Times in 0 Posts
Default 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>

#
Reply With Quote
  #3  
Old 12th September 2008, 20:14
runbuck runbuck is offline
Junior Member
 
Join Date: Nov 2007
Posts: 16
Thanks: 1
Thanked 0 Times in 0 Posts
 
Default Fixed

Needed to include this:

Include /etc/apache2/vhosts/Vhosts_ispconfig.conf

In:

/etc/apache2/apache2.conf

At the bottom.
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
clamassassin - centos 4.3 wcsmith Installation/Configuration 41 19th November 2007 23:30
suddenly vhosts created without correct user on Suse 10.2 Elfchen Installation/Configuration 17 8th July 2007 19:34
shared IP with third level domain stefan Installation/Configuration 15 13th June 2007 22:55
Help understanding how mail server should be setup micko_escalade Server Operation 51 12th February 2006 07:25
Everything owned by root !!! wwparrish Installation/Configuration 6 7th February 2006 21:25


All times are GMT +2. The time now is 08:31.


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