[wp-trac] [WordPress Trac] #15733: WordPress Installation behind reverse-proxy ssl redirect loop
WordPress Trac
noreply at wordpress.org
Tue Jun 2 13:05:40 UTC 2026
#15733: WordPress Installation behind reverse-proxy ssl redirect loop
--------------------------------------------+----------------------
Reporter: costasd | Owner: (none)
Type: defect (bug) | Status: closed
Priority: normal | Milestone:
Component: General | Version: 3.0.2
Severity: minor | Resolution: wontfix
Keywords: ssl nginx apache reverse-proxy | Focuses:
--------------------------------------------+----------------------
Comment (by opme4r):
Another approach is to have the web server set the fastcgi HTTPS variable
based on the X-Forworded-Proto or Forwarded http header.
For nginx that would look like:
{{{
http {
# …
map $http_x_forwarded_proto $fastcgi_https {
https on;
default "";
}
server {
listen 80;
listen [::]:80;
# …
location ~ \.php$ {
fastcgi_pass app_fpm;
fastcgi_param HTTPS $fastcgi_https if_not_empty;
# …
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/15733#comment:20>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list