• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

Subdomain in apache2

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>
 
Disclaimer - Only intermediate skill with Apache/ website stuff

I don't think the ServerAlias line is necessary, from a glance at the Apache docs, that only seems necessary if it was a "forums2.website.com" alias or whatever.

Is it possible that it's not an Apache problem, but a problem with how your domain is set up (registrar/ nameserver level)?
When I hosted my domain's site directly from my computer, I was using IP Addresses/ A records, and you need a new one for every subdomain, i.e.
domain.com <IP>
www.domain.com <IP>
subdomain.domain.com <IP>

Just throwing stuff out there 😛
 
Back
Top