Created
April 6, 2016 11:30
-
-
Save shrekuu/53fe0b9d3b45c179297351f5fde72ec0 to your computer and use it in GitHub Desktop.
sample; mac, apache, reverse proxy
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 example.com # change to your domain | |
ProxyRequests off | |
ProxyPreserveHost On | |
<Proxy *> | |
Order deny,allow | |
Allow from all | |
</Proxy> | |
<Location /> | |
ProxyPass http://localhost:3000/ retry=0 # change `3000` to your local app port | |
ProxyPassReverse http://localhost:3000/ # change `3000` to your local app port | |
</Location> | |
</VirtualHost> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment