Skip to content

Instantly share code, notes, and snippets.

@Rykian
Last active December 17, 2015 15:39
Show Gist options
  • Save Rykian/5633273 to your computer and use it in GitHub Desktop.
Save Rykian/5633273 to your computer and use it in GitHub Desktop.
#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