Sponsor:

Server and Web Integrator
Link:
Kloxo-MR logo
6.5.0 or 7.0.0
Click for "How to install"
Donation/Sponsorship:
Kloxo-MR is open-source.
Donate and or Sponsorship always welcome.
Click to:
Click Here
Please login or register. 2018-07-21, 05:53:50

Author Topic: Wordpress redirect loop after upgrade to httpd24  (Read 10936 times)

0 Members and 1 Guest are viewing this topic.

Offline Spacedust

  • Super Grand Master
  • ****
  • Posts: 3,962
  • Karma: +1/-0
    • View Profile
Re: Wordpress redirect loop after upgrade to httpd24
« Reply #45 on: 2015-07-02, 21:30:17 »
Same from your server:

[root@xl3 ~]# curl -s --head http://xl3.mratwork.com/
HTTP/1.1 200 OK
Server: nginx/1.9.2
Date: Thu, 02 Jul 2015 19:32:35 GMT
Content-Type: text/html; charset=UTF-8
Connection: keep-alive
X-Powered-By: PHP/5.6.10
X-Pingback: http://www.samsungforum.pl/xmlrpc.php
X-Micro-Cache: EXPIRED

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,382
  • Karma: +115/-9
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Wordpress redirect loop after upgrade to httpd24
« Reply #46 on: 2015-07-02, 21:34:05 »
Your samsungforum.pl already redirect to their www in my firefox.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline Spacedust

  • Super Grand Master
  • ****
  • Posts: 3,962
  • Karma: +1/-0
    • View Profile
Re: Wordpress redirect loop after upgrade to httpd24
« Reply #47 on: 2015-07-02, 21:36:34 »
Your samsungforum.pl already redirect to their www in my firefox.

Wait I will try to redirect to your server.

Offline Spacedust

  • Super Grand Master
  • ****
  • Posts: 3,962
  • Karma: +1/-0
    • View Profile
Re: Wordpress redirect loop after upgrade to httpd24
« Reply #48 on: 2015-07-02, 21:38:18 »
Bingo - now we have redirect loop :D

Quote
[root@xl3 globals]# curl -s --head http://xl3.mratwork.com/
HTTP/1.1 301 Moved Permanently
Server: nginx/1.9.2
Date: Thu, 02 Jul 2015 19:42:34 GMT
Content-Type: text/html; charset=UTF-8
Content-Length: 0
Connection: keep-alive
X-Powered-By: PHP/5.6.10
X-Pingback: http://www.xl3.mratwork.com/xmlrpc.php
Location: http://www.xl3.mratwork.com/
X-Micro-Cache: EXPIRED

[root@xl3 globals]# curl -s --head http://www.xl3.mratwork.com/
HTTP/1.1 301 Moved Permanently
Server: nginx/1.9.2
Date: Thu, 02 Jul 2015 19:42:38 GMT
Content-Type: text/html; charset=UTF-8
Content-Length: 0
Connection: keep-alive
X-Powered-By: PHP/5.6.10
X-Pingback: http://www.xl3.mratwork.com/xmlrpc.php
Location: http://www.xl3.mratwork.com/
X-Micro-Cache: EXPIRED

Offline Spacedust

  • Super Grand Master
  • ****
  • Posts: 3,962
  • Karma: +1/-0
    • View Profile
Re: Wordpress redirect loop after upgrade to httpd24
« Reply #49 on: 2015-07-02, 22:35:55 »
It seems it properly redirecting from non-www to www, but then tries to go back to non-www and that's not possible ;(

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,382
  • Karma: +115/-9
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Wordpress redirect loop after upgrade to httpd24
« Reply #50 on: 2015-07-02, 23:05:43 »
I think something work with nginx-proxy. I didn't found this issue when using hiawatha-proxy.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,382
  • Karma: +115/-9
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Wordpress redirect loop after upgrade to httpd24
« Reply #51 on: 2015-07-02, 23:07:50 »
Check http://op1.mratwork.com (using hiawatha + httpd 2.4).
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline Spacedust

  • Super Grand Master
  • ****
  • Posts: 3,962
  • Karma: +1/-0
    • View Profile
Re: Wordpress redirect loop after upgrade to httpd24
« Reply #52 on: 2015-07-02, 23:53:30 »
Check http://op1.mratwork.com (using hiawatha + httpd 2.4).

Works fine. So we need to investigate nginx now.

Offline Spacedust

  • Super Grand Master
  • ****
  • Posts: 3,962
  • Karma: +1/-0
    • View Profile
Re: Wordpress redirect loop after upgrade to httpd24
« Reply #53 on: 2015-07-03, 00:20:52 »
Something is wrong in Apache 2.4 when running with nginx:

Quote
[root@xl3 globals]# curl -s --head http://www.xl3.mratwork.com:30080
HTTP/1.1 301 Moved Permanently
Date: Thu, 02 Jul 2015 22:24:18 GMT
Server: Apache/2.4.12 (Red Hat)
X-Powered-By: PHP/5.6.10
X-Pingback: http://www.xl3.mratwork.com/xmlrpc.php
Location: http://www.xl3.mratwork.com/
Connection: close
Content-Type: text/html; charset=UTF-8

[root@xl3 globals]# curl -s --head http://xl3.mratwork.com:30080
HTTP/1.1 301 Moved Permanently
Date: Thu, 02 Jul 2015 22:24:25 GMT
Server: Apache/2.4.12 (Red Hat)
X-Powered-By: PHP/5.6.10
X-Pingback: http://www.xl3.mratwork.com/xmlrpc.php
Location: http://www.xl3.mratwork.com/
Connection: close
Content-Type: text/html; charset=UTF-8

Without nginx:

Quote
[root@xl3 /]# curl -s --head http://xl3.mratwork.com
HTTP/1.1 301 Moved Permanently
Date: Thu, 02 Jul 2015 22:45:40 GMT
Server: Apache/2.4.12 (Red Hat)
X-Powered-By: PHP/5.6.10
X-Pingback: http://www.xl3.mratwork.com/xmlrpc.php
Location: http://www.xl3.mratwork.com/
Connection: close
Content-Type: text/html; charset=UTF-8

[root@xl3 /]# curl -s --head http://www.xl3.mratwork.com
HTTP/1.1 200 OK
Date: Thu, 02 Jul 2015 22:45:44 GMT
Server: Apache/2.4.12 (Red Hat)
X-Powered-By: PHP/5.6.10
X-Pingback: http://www.xl3.mratwork.com/xmlrpc.php
Connection: close
Content-Type: text/html; charset=UTF-8
« Last Edit: 2015-07-03, 00:42:36 by Spacedust »

Offline Spacedust

  • Super Grand Master
  • ****
  • Posts: 3,962
  • Karma: +1/-0
    • View Profile
Re: Wordpress redirect loop after upgrade to httpd24
« Reply #54 on: 2015-07-03, 01:03:00 »
I've changed in switch_standard.conf:

Quote
proxy_set_header X-Host $var_domain;

to

Quote
proxy_set_header X-Host $host;

and it works.

Now need to test dedicated IP: http://serverfault.com/questions/394983/nginx-proxying-to-multiple-ip-addresses-for-cms-website-preview
« Last Edit: 2015-07-03, 01:09:15 by Spacedust »

Offline Spacedust

  • Super Grand Master
  • ****
  • Posts: 3,962
  • Karma: +1/-0
    • View Profile
Re: Wordpress redirect loop after upgrade to httpd24
« Reply #55 on: 2015-07-03, 01:30:26 »
Also secondary PHP stopped working again.

Offline Spacedust

  • Super Grand Master
  • ****
  • Posts: 3,962
  • Karma: +1/-0
    • View Profile
Re: Wordpress redirect loop after upgrade to httpd24
« Reply #56 on: 2015-07-03, 23:27:11 »
Does it work now ?

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,382
  • Karma: +115/-9
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Wordpress redirect loop after upgrade to httpd24
« Reply #57 on: 2015-07-04, 03:58:25 »
No issue I found in xl3.mratwork.com. Check .httaccess where I add 'SetHandler x-httpd-php54' and then access phpinfo.php.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline Spacedust

  • Super Grand Master
  • ****
  • Posts: 3,962
  • Karma: +1/-0
    • View Profile
Re: Wordpress redirect loop after upgrade to httpd24
« Reply #58 on: 2015-07-04, 11:49:09 »
Yes. It works well now, so we can upgrade ;)

 


MRatWork Affiliates:    BIGRAF(R) Inc.    House of LMAR    EFARgrafix
Click Here

Page created in 0.063 seconds with 23 queries.

web stats analysis