Skip to content

Instantly share code, notes, and snippets.

@kleo
Forked from deardooley/000-default.conf
Created November 5, 2018 03:43
Show Gist options
  • Save kleo/ea350c048b5a15ac0ab04426873fea7b to your computer and use it in GitHub Desktop.
Save kleo/ea350c048b5a15ac0ab04426873fea7b to your computer and use it in GitHub Desktop.
Sample Apache virtual host to proxy subdomain to docker container
<VirtualHost *:80>
ServerAdmin [email protected]
DocumentRoot /var/www
ServerName docker.example.com
ErrorLog logs/docker.example.com_error.log
CustomLog logs/docker.example.com_access.log combined
ProxyPreserveHost On
ProxyRequests off
<Location />
ProxyPass http://localhost:9000/
ProxyPassReverse http://localhost:9000/
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