View Single Post
  #1  
Old 13th June 2007, 17:33
stirfry stirfry is offline
Member
 
Join Date: Jun 2007
Posts: 37
Thanks: 4
Thanked 0 Times in 0 Posts
Default Virtual Hosting Not Working

I have created a site in ISPConfig but the site resolves to the web root rather than the document root specified in the "Vhosts_ispconfig.conf" file as shown here:

Code:
NameVirtualHost 000.00.000.0:80
<VirtualHost 000.00.000.0:80>
  ServerName localhost
  ServerAdmin root@localhost
  DocumentRoot /var/www/sharedip
</VirtualHost>
#
#
######################################
# Vhost: www.mysite.com:80
######################################
#
#
<VirtualHost 000.00.000.0:80>
ServerName www.mysite.com:80
ServerAdmin webmaster@mysite.com
DocumentRoot /var/www/web6/web
ServerAlias mysite.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
##### [shortened to save space]##########
AliasMatch ^/~([^/]+)(/(.*))? /var/www/web6/user/$1/web/$3
AliasMatch ^/users/([^/]+)(/(.*))? /var/www/web6/user/$1/web/$3
</VirtualHost>
So, basically, I can see the directory ISPConfig created for my site when I got to http://www.mysite.com. What am I doing wrong? Any help is appreciated!
Reply With Quote
Sponsored Links