Skip to content

Instantly share code, notes, and snippets.

@joshuachinemezu
Created June 19, 2020 21:55
Show Gist options
  • Save joshuachinemezu/15ecd63218a31e12810cfe925b9be041 to your computer and use it in GitHub Desktop.
Save joshuachinemezu/15ecd63218a31e12810cfe925b9be041 to your computer and use it in GitHub Desktop.
Apache Proxy Request to Docker
<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