Created
October 14, 2013 17:39
-
-
Save John2496/6979205 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
<VirtualHost *:80> | |
RewriteEngine On | |
RewriteMap lowercase int:tolower | |
RewriteRule ^(/var/www/vhosts/[^/]+/.*)$ $1 | |
RewriteRule ^(.+) ${lowercase:%{SERVER_NAME}}$1 | |
RewriteRule ^(www\.)?([^/]+)/(.*)$ /var/www/vhosts/$2/htdocs/$3 [E=VHOST_ROOT:/var/www/vhosts/$2/] | |
Options +Indexes +FollowSymLinks | |
</VirtualHost> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment