Divi WordPress Theme
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

WordPress fix wp-admin redirecting to backend server from reverse proxy

Discussion in 'Misc WordPress Requests' started by jbaxley189, Mar 14, 2018.

  1. jbaxley189

    Guest

    wp-admin redirecting to backend server from reverse proxy, by jbaxley189

    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!

    wp-admin redirecting to backend server from reverse proxy
     
    #1

Share This Page

Monarch Social Sharing Plugin