[wp-trac] [WordPress Trac] #43698: 4.9.5 broke site behind load balancer, forwards to localhost

WordPress Trac noreply at wordpress.org
Thu Apr 5 11:03:47 UTC 2018


#43698: 4.9.5 broke site behind load balancer, forwards to localhost
--------------------------+------------------------------
 Reporter:  ssuess        |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  General       |     Version:  4.9.5
 Severity:  major         |  Resolution:
 Keywords:                |     Focuses:
--------------------------+------------------------------

Comment (by ssuess):

 I was able to work around this and update by changing my wp-config
 directives to:


 {{{
 define('WP_SITEURL', 'https://' . $_SERVER['SERVER_NAME']);
 define('WP_HOME', 'https://' . $_SERVER['SERVER_NAME']);
 }}}

 And also adding a param to my nginx conf to properly account for variable
 server names:

 {{{
 fastcgi_param SERVER_NAME $host;
 }}}

 without both of the above, my particular setup would not work properly.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/43698#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list