hi,
I have a basic question about whether my apache config is setup correctly on one of my linodes. We have a domain that is currently hosted on mediatemple but we are forwarding subdomains from that domain to linode.
So our mediatemple DNS config is like this:
A records for:
Code:
books.example.com -> [IP OF MY LINODE]
events.example.com -> [IP OF MY LINODE]
Then on the linode I don't have specific DNS entries just the following apache configs:
Code:
# /usr/sbin/apache2ctl -S
VirtualHost configuration:
wildcard NameVirtualHosts and _default_ servers:
*:80 is a NameVirtualHost
default server books.example.com (/etc/apache2/sites-enabled/books.example.com:1)
port 80 namevhost books.example.com (/etc/apache2/sites-enabled/books.example.com:1)
port 80 namevhost events.example.com (/etc/apache2/sites-enabled/events.example.com:1)
[ snip ... ]
Syntax OK
and my configs that are symlinked in sites-enabled:
Code:
# cat books.example.com
<VirtualHost *:80>
ServerAdmin admin@example.com
ServerName books.example.com
ServerAlias books.example.com
DocumentRoot /srv/www/books.example.com/public_html/
ErrorLog /srv/www/books.example.com/logs/error.log
CustomLog /srv/www/books.example.com/logs/access.log combined
<Directory />
Options FollowSymLinks
AllowOverride All
</Directory>
</VirtualHost>
# cat events.example.com
<VirtualHost *:80>
ServerAdmin admin@example.com
ServerName events.example.com
ServerAlias events.example.com
DocumentRoot /srv/www/eventssite/public_html/
ErrorLog /srv/www/eventssite/logs/error.log
CustomLog /srv/www/eventssite/logs/access.log combined
<Directory />
Options FollowSymLinks
AllowOverride All
</Directory>
</VirtualHost>
Now the issue is that books.example.com returns the site at events.example.com and thing generally are a little glitchy. We set up the DNS for this about 18 hours ago. Is it just DNS propagation or is my configuration incorrect?
Please advise, I don't really know that much about DNS configurations... DO I need to modify my /etc/hosts file for example?
Thanks!
- J