Created
August 15, 2015 17:09
-
-
Save silviopaganini/d1b8ef55d4ae71861383 to your computer and use it in GitHub Desktop.
Vhost wild card
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
UseCanonicalName Off | |
LogFormat "%A %h %l %u %t \"%r\" %s %b" vcommon | |
CustomLog logs/access_log vcommon | |
VirtualDocumentRoot /var/www/html/%0 | |
RewriteEngine On | |
RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC] | |
RewriteRule ^(.*)$ http://%1$1 [R=301,L] | |
<Directory /var/www/html/%0> | |
Options Indexes FollowSymLinks MultiViews | |
AllowOverride All | |
Order allow,deny | |
allow from all | |
</Directory> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment