Last active
December 17, 2015 15:39
-
-
Save Rykian/5633273 to your computer and use it in GitHub Desktop.
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
#Use Apache as proxy for VM based on local DNS resolution | |
<VirtualHost *:80> | |
ServerName vm.example.com | |
ServerAlias *.vm.example.com | |
RewriteEngine on | |
RewriteCond %{HTTP_HOST} (.*)\.vm\.example\.com$ | |
RewriteRule (.*)$ http://%1.vm.example.com/$1 [P] | |
</VirtualHost> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment