Skip to content

Instantly share code, notes, and snippets.

@frendhisaido
Last active November 13, 2018 08:56
Show Gist options
  • Save frendhisaido/17f1d75b12fee7b0faf0e69318088c02 to your computer and use it in GitHub Desktop.
Save frendhisaido/17f1d75b12fee7b0faf0e69318088c02 to your computer and use it in GitHub Desktop.
virtual host docker app
<VirtualHost *:80>
ServerName vhost.com
<Proxy *>
AddDefaultCharset off
Order deny,allow
Allow from all
</Proxy>
<Location />
ProxyPass http://localhost:8081/
ProxyPassReverse http://localhost:8081/
Header set Access-Control-Allow-Origin "*"
</Location>
# <Location /assets/>
# ProxyPass !
# </Location>
RequestHeader set Host "vhost.com"
ProxyPreserveHost On
ErrorLog ${APACHE_LOG_DIR}/vhost.com.error.log
CustomLog ${APACHE_LOG_DIR}/vhost.com.access.log combined
LogLevel debug
</VirtualHost>
@frendhisaido
Copy link
Author

Asumming you docker app is running at localhost:8081

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment