Well thats annoying, VHosts not working.

Status
Not open for further replies.

kblessinggr

PedoBeard
Sep 15, 2008
5,723
80
0
G.R., Michigan
www.kbeezie.com
I'm using Webmin on CentOS, trying to setup another domain on virtual host on this new hosting provider.

I already got the first domain in and working.

This is the bottom of the apache config.

Code:
<VirtualHost _default_:80>
DocumentRoot /var/www/html/domainone.com
ServerName domainone.com
ServerAlias www.domainone.com
UseCanonicalName off
</VirtualHost>
<VirtualHost _default_:80>
DocumentRoot /var/www/html/domaintwo.com
ServerName domaintwo.com
ServerAlias www.domaintwo.com
UseCanonicalName off
</VirtualHost>

The problem is if I type domaintwo.com it only shows the content of domainone.com, I can't seem to get it to stick to its own document root.
 


Figures, even though I'm "creating virtual server" in webmin, it never had NameVirtualHost *:80 uncommented in the configuration file. (after AllowOverride wasn't set to All despite making it work with .htaccess, I figured I better read over the config file.)
 
Status
Not open for further replies.