Last active
August 29, 2015 14:09
-
-
Save arbo77/7c37d1df5305338ad38d to your computer and use it in GitHub Desktop.
Setting multiple expressjs app menggunakan apache virtual hosting + mod_proxy
This file contains hidden or 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
| 127.0.0.1 localhost.io | |
| 127.0.0.1 www.localhost.io | |
| 127.0.0.1 www1.localhost.io | |
| 127.0.0.1 www2.localhost.io | |
| 127.0.0.1 nodejs.localhost.io |
This file contains hidden or 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
| NameVirtualHost *:80 | |
| <VirtualHost *:80> | |
| ServerName www.localhost.io | |
| DocumentRoot "E:/www" | |
| </VirtualHost> | |
| <VirtualHost *:80> | |
| ServerName nodejs.localhost.io | |
| ProxyRequests off | |
| ProxyPreserveHost on | |
| ProxyPass / http://localhost:3000/ | |
| ProxyPassReverse / http://localhost:3000/ | |
| <Proxy *> | |
| Order allow,deny | |
| Allow from all | |
| </Proxy> | |
| </VirtualHost> |
This file contains hidden or 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
| LoadModule proxy_module modules/mod_proxy.so | |
| LoadModule proxy_http_module modules/mod_proxy_http.so |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment