Uncategorized

ServerAlias does not resolve to correct URLs

Apache 2 for Redhat Linux:: ServerAlias does not resolve to correct URLs
ServerAlias is a new directive incorporated in Apache 2 that allows a virtual host to answer to URL queries under many names.

The good thing about it is that you do not need another VirtualHost container to forward different URLs to one site. The downer is that unlike the Redirect directive, ServerAlias does not resolve the URL field of HTTP 1.1 browsers to the canonical name nor the main virtual host name. So if you use CGIs, SSIs, or any kind of scripting that refers to an relative path, you might want to stay away from using the ServerAlias directive.