I am now attempting to setup a sub domain and having a tad bit of a problem. It is a virtual host that is named based.
Here is what I have setup in the httpd-vhosts.conf file:
The main host is working fine, however when I go to blog.dougpalme.com it resolves back to the primary site, instead of displaying what is in that directory.
Suggestions?
Here is what I have setup in the httpd-vhosts.conf file:
Code:
<VirtualHost blog.dougpalme.com:80>
ServerName blog.dougpalme.com
DocumentRoot "/home/dougpalme/www/data/blog"
</VirtualHost>
<VirtualHost dougpalme.com:80>
ServerAdmin webmaster@dougpalme.com
DocumentRoot "/home/dougpalme/www/data"
ServerName dougpalme.com
ServerAlias www.dougpalme.com
ScriptAlias /cgi-bin/ "/home/dougpalme/www/cgi-bin/"
ErrorLog "/home/dougpalme/www/logs/error_log"
CustomLog "/home/dougpalme/www/logs/access_log" combined
<Directory "/home/dougpalme/www">
Options -Indexes FollowSymLinks
AllowOverride AuthConfig FileInfo
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
The main host is working fine, however when I go to blog.dougpalme.com it resolves back to the primary site, instead of displaying what is in that directory.
Suggestions?