You are viewing a plain text version of this content. The canonical link for it is here.
Posted to docs@httpd.apache.org by Apache Wiki <wi...@apache.org> on 2014/09/16 15:26:07 UTC
[Httpd Wiki] Trivial Update of "CanonicalHostNames" by Sling
Dear Wiki user,
You have subscribed to a wiki page or wiki category on "Httpd Wiki" for change notification.
The "CanonicalHostNames" page has been changed by Sling:
https://wiki.apache.org/httpd/CanonicalHostNames?action=diff&rev1=13&rev2=14
{{{
+ # Required for 2.2.x and below:
- NameVirtualHost *:80
+ #NameVirtualHost *:80
+ # www.example.net and www.example.com VirtualHost
<VirtualHost *:80>
ServerName www.example.net
ServerAlias www.example.com
Redirect permanent / http://example.com/
</VirtualHost>
+ # Canonical VirtualHost
<VirtualHost *:80>
- # Canonical host
ServerName example.com
DocumentRoot /usr/local/apache/htdocs
</VirtualHost>
}}}
+
+
+
== Using mod_rewrite ==
---------------------------------------------------------------------
To unsubscribe, e-mail: docs-unsubscribe@httpd.apache.org
For additional commands, e-mail: docs-help@httpd.apache.org