Skip to content

Instantly share code, notes, and snippets.

@JamesPaden
Created September 3, 2015 11:53
Show Gist options
  • Save JamesPaden/7a020357e533f4ab31cd to your computer and use it in GitHub Desktop.
Save JamesPaden/7a020357e533f4ab31cd to your computer and use it in GitHub Desktop.
Apache Config for Wordpress Reverse Proxy
# Put this inside the <VirtualHost> directive
<Location /blog>
RequestHeader set X-Is-Reverse=Proxy true
RequestHeader set X-Original-Host yourwebsite.com
ProxyPass http://yourpressableblog.com
ProxyPassReverse http://yourpressableblog.com
</Location>
@tomaszwostal
Copy link

@Antoinebr
Add ProxyPreserveHost On to config

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment