I'm using Wordpress and Vanilla to run a site with supporting forums. WP is the in the root folder and vanilla is in the sub-folder 'forum'. This works on my local machine with the following HOSTS file entries:
127.0.0.1 dev.mydomain.com 127.0.0.1 devforum.mydomain.com
I moved all the code up to a VPS and imported the DBs (including minor DB record changes necessary for WP migration). On the VPS, I have used WHM/cPanel to setup www.mydomain.com and forum.mydomain.com, where the forum software is installed in a sub-folder of the main site. I used cPanel to create the subdomain and selected the correct sub-folder (public_html/forum/).
The following entries in my local HOSTS file to map the VPS's IP address as I do not want global DNS servers to point the domain at my VPS just yet. Here are my local entries:
123.123.123.123 www.mydomain.com 123.123.123.123 forum.mydomain.com
Wordpress works fine on www.mydomain.com, but the subdomain is redirecting to a default website page: forum.mydomain.com/cgi-sys/defaultwebpage.cgi
Any thoughts on what I should be checking? I've triple checked everything I can think of, but it's saturday night and I think the coding beers are kicking in..