Skip to content

Instantly share code, notes, and snippets.

@wesleyit
Created June 12, 2015 17:08
Show Gist options
  • Save wesleyit/bd59d69bcd37a49679e9 to your computer and use it in GitHub Desktop.
Save wesleyit/bd59d69bcd37a49679e9 to your computer and use it in GitHub Desktop.
This is a sample file for an Apache HTTP server running on the same machine together a Docker Server and a few web applications.
NameVirtualHost *:80
<VirtualHost *:80>
ServerName jenkins.gif-concretemobile.net
ProxyRequests Off
ProxyPass / http://127.0.0.1:8080/
ProxyPassReverse / http://127.0.0.1:8080/
<Location />
Order allow,deny
Allow from all
</Location>
</VirtualHost>
<VirtualHost *:80>
ServerName kanboard.gif-concretemobile.net
ProxyRequests Off
ProxyPass / http://127.0.0.1:8081/
ProxyPassReverse / http://127.0.0.1:8081/
<Location />
Order allow,deny
Allow from all
</Location>
</VirtualHost>
<VirtualHost *:80>
ServerName nexus.gif-concretemobile.net
ProxyRequests Off
ProxyPass / http://127.0.0.1:8082/
ProxyPassReverse / http://127.0.0.1:8082/
<Location />
Order allow,deny
Allow from all
</Location>
</VirtualHost>
<VirtualHost *:80>
ServerName mobrelease.gif-concretemobile.net
RewriteEngine On
RewriteCond %{HTTP_HOST} mobrelease.gif-concretemobile.net
RewriteCond %{REQUEST_URI} ^/$
RewriteRule .* /mobrelease/admin [R]
ProxyRequests Off
ProxyPass / http://127.0.0.1:7080/
ProxyPassReverse / http://127.0.0.1:7080/
<Location />
Order allow,deny
Allow from all
</Location>
</VirtualHost>
<VirtualHost *:80>
ServerName gitlab.gif-concretemobile.net
ProxyRequests Off
ProxyPass / http://127.0.0.1:9080/
ProxyPassReverse / http://127.0.0.1:9080/
<Location />
Order allow,deny
Allow from all
</Location>
</VirtualHost>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment