Not entirely sure if this is a DNS problem or an Apache config problem, or
a combination of 2 or more of those issues, but when I create a wildcarded
server alias on my system running multiple virtual hosts, all domains
resolve to the first aliased ServerName in the list.
For example:
www.progressivetrail.org resolves fine but progressivetrail.org resolves
to sportsjournals.net.
Can anyone point me in the proper direction? I find the documentation on
this a little confusing.
Here's the relevant config:
NameVirtualHost *:80
<VirtualHost *:80>
ServerAdmin webmaster [at] sportsjournals.net
DocumentRoot /var/www/psj
ServerName sportsjournals.net
ServerAlias *.sportsjournals.net
ErrorLog /var/log/apache/host.sj-error.log
CustomLog /var/log/apache/host.sj-access.log common
</VirtualHost>
<VirtualHost *:80>
ServerAdmin webmaster [at] progressivetrail.org
DocumentRoot /var/www/pt
ServerName www.progressivetrail.org
ServerAlias *.progressivetrail.org
ErrorLog /var/log/apache/host.pt-error.log
CustomLog /var/log/apache/host.pt-access.log common
</VirtualHost>
--
SportsJournals.net - free community blogging for Sports Junkies
