httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Onno Bosch" <>
Subject Re: mod_rewrite better for this?
Date Thu, 06 Dec 2001 22:34:56 GMT

I'm being a newbee to Apache, but to me the solution seems very simple.

Just define the virtualhost container as follows:

    DocumentRoot /net/www/public_html/www
    ScriptAlias /cgi-bin/ /net/www/public_html/cgi-bin/
    ErrorLog /net/www/public_html/logs/http.err
    CustomLog /net/www/public_html/logs/access.log combined

Please notice the ServerAlias directive. This makes your second container
(the one redirecting the URL without www. to the server)
The same idea works fine for me on a server I'm currently working on...


> I have two virtual host domains.  One redirects to the other, and both
> are available with and without the www. in front of the domain name.

The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message