WordPress login loop on proxy setup with SSL – Apache proxy to IIS

WordPress is working fine if using http://localhost:8091/ to login and browse; however, using https://www.website.net/blog/ will only let me browse — login is not working.

———- —————- —————–
| Client | <- HTTPS -> | Apache Proxy | <- HTTP -> | IIS WordPress |
———- —————- —————–

WordPress Server hosted by IIS (http://localhost:8091/), and proxy (Apache 2.4) is on same box OS Windows 10 pro. I have .htaccess file.

WordPress wp_options table

home is http://localhost:8091
siteurl is http://localhost:8091

Apache conf

<VirtualHost www.website.com:443>

<IfModule mod_proxy.c>
ProxyRequests Off
ProxyPass /blog/ http://localhost:8091/
ProxyPassReverse /blog/ http://localhost:8091/


<Proxy “http://localhost:8091”>
SetOutputFilter proxy-html
ProxyHTMLEnable on
ProxyHTMLExtended on
ProxyHTMLURLMap http://localhost:8091/ https://www.website.com/blog/



<?xml version=”1.0″ encoding=”UTF-8″?>
<clear />
<add value=”index.php” />

Would I need to change my web.config file (translator) to something else?

URL after failed login attempt is https://www.websit.com/blog/wp-login.php?redirect_to=http%3A%2F%2Flocalhost%3A8091%2Fwp-admin%2F&reauth=1

I tried to dig deep into the WP code to figure out where $redirect_to = is declared. I am getting (33 hits in 7 files) … somehow not very transparent. Thank you for any suggestions.

Read more here:: WordPress login loop on proxy setup with SSL – Apache proxy to IIS

Leave a Reply

Your email address will not be published. Required fields are marked *