Apache Reverse Proxy (WP works)

First

a2enmod headers proxy proxy_http

In this example we’re using port 8000

ProxyRequests Off
ProxyPreserveHost On
RequestHeader set X-Forwarded-Proto "https"
RequestHeader set X-Forwarded-Port "443"
ProxyPass / http://localhost:8000/
ProxyPassReverse / http://localhost:8000/

Tags: