Skip to content

Instantly share code, notes, and snippets.

@fpaupier
Created September 9, 2018 09:41
Show Gist options
  • Save fpaupier/2d690a01b23a6f46cb5562986a48604b to your computer and use it in GitHub Desktop.
Save fpaupier/2d690a01b23a6f46cb5562986a48604b to your computer and use it in GitHub Desktop.
Rewrite rules reverse proxy call to API
<IfModule mod_ssl.c>
<VirtualHost *:443>
 <some code>
 ProxyPreserveHost On
 ProxyPass /apiUS http://127.0.0.1:8000/apiUS
 ProxyPassReverse /apiUS https://127.0.0.1:8000/apiUS
<some code>
</VirtualHost>
</IfModule>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment