Here are the config files that I have setup.
This is the main domain that is working. I have another domain using the same codes/layout
Code:
# Notes
<VirtualHost *:80>
# Admin Details
ServerAdmin webmaster@wpthoughts.com
ServerName wpthoughts.com
ServerAlias www.wpthoughts.com
# Index and Document Root
DirectoryIndex index.php index.html
DocumentRoot /var/www/wpthoughts.com
# Log Files
LogLevel warn
ErrorLog /var/www/wpthoughts.com/logs/error.log
CustomLog /var/www/wpthoughts.com/logs/access.log combined
</VirtualHost>
And this is the file for the subdomain that isn't working.
Code:
# Notes
<VirtualHost *:80>
# Admin Details
ServerAdmin webmaster@wpthoughts.com
ServerName themes.wpthoughts.com
# ServerAlias www.wpthoughts.com
# Index and Document Root
DirectoryIndex index.php index.html
DocumentRoot /var/www/themes.wpthoughts.com
# Log Files
LogLevel warn
ErrorLog /var/www/themes.wpthoughts.com/logs/error.log
CustomLog /var/www/themes.wpthoughts.com/logs/access.log combined
</VirtualHost>
Here is the DNS render file
Code:
$TTL 86400
@ IN SOA ns1.linode.com. andrewjbarnett.gmail.com. (
2009012406
7200
7200
1209600
86400
)
@ NS ns1.linode.com.
@ NS ns2.linode.com.
@ NS ns3.linode.com.
@ NS ns4.linode.com.
@ MX 10 ASPMX.L.GOOGLE.COM.
www A 72.14.181.193
@ A 72.14.181.193
themes CNAME wpthoughts.com.
I did 'a2ensite' for the subdomain, and restarted Apache2 as well without success.