Created
March 7, 2013 10:36
-
-
Save antonlindstrom/5107132 to your computer and use it in GitHub Desktop.
Rewrite domains w\ RewriteMap
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> | |
ServerAdmin webmaster@localhost | |
RewriteEngine On | |
RewriteMap exampledomain txt:/etc/apache2/domains.txt | |
RewriteRule ^/$ ${exampledomain:%{HTTP_HOST}} | |
RewriteLog /var/log/apache2/rewrite.log | |
RewriteLogLevel 5 | |
ErrorLog ${APACHE_LOG_DIR}/error.log | |
# Possible values include: debug, info, notice, warn, error, crit, | |
# alert, emerg. | |
LogLevel warn | |
CustomLog ${APACHE_LOG_DIR}/access.log combined | |
</VirtualHost> |
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
www.example.com https://test.com/from-example | |
jenkins.example.com https://ci.example.com | |
localhost https://test.com |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment