bluestrobe
Platinum Member
I looked all over and can not find how to properly add a subdomain virtual host to the httpd.conf file. I am well aware of virtual hosts and currently run three web sites at the moment. I want to add a forum to one of my websites and wanted to create a subdomain for it (forums.website.com). I haven't found much on name based sub domains so below is what I have gathered. However it doesn't work. The directories have been created locally. What do I need to change to make this work?
<VirtualHost *:80>
ServerName forums.website.com
ServerAlias forums.website.com
DocumentRoot "C:\Program Files\Apache Group\Apache2\www\forums.website.com"
ErrorLog "C:\Program Files\Apache Group\Apache2\logs\forums.website.com\error.log"
CustomLog "C:\Program Files\Apache Group\Apache2\logs\forums.website.com\access.log" common
</VirtualHost>
<VirtualHost *:80>
ServerName forums.website.com
ServerAlias forums.website.com
DocumentRoot "C:\Program Files\Apache Group\Apache2\www\forums.website.com"
ErrorLog "C:\Program Files\Apache Group\Apache2\logs\forums.website.com\error.log"
CustomLog "C:\Program Files\Apache Group\Apache2\logs\forums.website.com\access.log" common
</VirtualHost>