Skip to content

Instantly share code, notes, and snippets.

@shrekuu
Created April 6, 2016 11:30
Show Gist options
  • Save shrekuu/53fe0b9d3b45c179297351f5fde72ec0 to your computer and use it in GitHub Desktop.
Save shrekuu/53fe0b9d3b45c179297351f5fde72ec0 to your computer and use it in GitHub Desktop.
sample; mac, apache, reverse proxy
# @温柔的码农
<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