httpd-docs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
Subject [Httpd Wiki] Trivial Update of "CanonicalHostNames" by Sling
Date Tue, 16 Sep 2014 13:26:07 GMT
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


Mime
View raw message