wp-admin redirecting to backend server from reverse proxy
-
Hey Everyone,
I’m migrating an existing wordpress installation to a new server and placing the wordpress installation behind a reverse proxy.
The reverse proxy is a NGINX server and the wordpress installation is also being put on a NGINX server. The 2 servers are individual VMs.
I have the wordpress site working just fine, until I attempt to access the wp-admin pages. When I use the url https://www.example.com/wp-admin – I get a 301 redirect to https://<backend-server-fqdn>/wp-admin.
What am I missing here? I managed to fix the issue by forcing $_SESSION[‘HTTP_HOST’] = <frontend-fqdn>;
But this seems pretty hacky. I would imagine WP would allow for reverse proxy on its own.
Any help or advice would be great!
The topic ‘wp-admin redirecting to backend server from reverse proxy’ is closed to new replies.