Skip to content

Instantly share code, notes, and snippets.

@deardooley
Last active February 21, 2023 03:19
Show Gist options
  • Star 14 You must be signed in to star a gist
  • Fork 8 You must be signed in to fork a gist
  • Save deardooley/865b7f10a9d14c9da126 to your computer and use it in GitHub Desktop.
Save deardooley/865b7f10a9d14c9da126 to your computer and use it in GitHub Desktop.
Sample Apache virtual host to proxy subdomain to docker container
<VirtualHost *:80>
ServerAdmin admin@example.com
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