Apache 1.3 Virtual Hosting Problems

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
sjp [ Mi, 16 November 2005 20:14 ] [ ID #1060215 ]

Re: Apache 1.3 Virtual Hosting Problems

Post removed (X-No-Archive: yes)
Notifier Deamon [ Mi, 16 November 2005 20:20 ] [ ID #1060216 ]

Re: Apache 1.3 Virtual Hosting Problems

On Wed, 16 Nov 2005 20:20:21 +0100, Davide Bianchi wrote:


> A simple 'progressivetrail.org' won't be picked up by Apache as
> *.progressivetrail.org and served by your first VHost.

*hostname.org works great. Thanks Davide.

--
SportsJournals.net - free community blogging for Sports Junkies
sjp [ Mi, 16 November 2005 20:31 ] [ ID #1060217 ]
Webserver » alt.apache.configuration » Apache 1.3 Virtual Hosting Problems

Vorheriges Thema: rules for mod rewrite
Nächstes Thema: Apache does not respond after stop/start