Last active
November 13, 2018 08:56
-
-
Save frendhisaido/17f1d75b12fee7b0faf0e69318088c02 to your computer and use it in GitHub Desktop.
virtual host docker app
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Asumming you docker app is running at localhost:8081