I'm using Apache 1.2.4 and I'm trying to figure out
how to use one IP address and have it redirect
all www.domain.com calls and domain.com calls
to one DocumentRoot and all other calls (whatever.domain.com) to a
script using a different DocumentRoot value.
No matter what I do to the httpd.conf file, it doesn't
work. Right now it's like this:
<VirtualHost domain.com>
DocumentRoot /web/guide/domain/HTML
ServerName webpost.net
ServerAlias www.domain.com
TransferLog /web/guide/domain/file.log
</VirtualHost>
<VirtualHost domain.com>
DocumentRoot /web/guide/cgi-bin/domain-cgi/jump.cgi
ServerName *.domain.com
ServerAlias *.domain.com
</VirtualHost>
I read some place to try taking off the last > on the beginning
VirtualHost's but that didn't work either.
My purpose is to have anything other than www. forward to the
script, and then the script will forward the correct subdomain that
was called to a new directory on the server.
Thank you