Support » Plugin: WPtouch » WPtouch, Multi-site and NginX

  • Trying WPtouch on a WP Multi-site install running on an NginX server, I find the redirection to the normal (desktop) theme does not work. After hitting the ON/OFF switch, I get redirected to http://_/ (the full domain name gets replaced by an underscore) right after the request


    has been processed. A cookie is properly set so revisiting the site with the mobile device will now show the desktop theme.

    Using (pasting the url that is used in the javascript involved in the on/off switch, including the nonce value) it reports these response headers:

    Status: HTTP/1.1 302 Moved Temporarily
    Server:	nginx/1.0.9
    Date:	Thu, 06 Sep 2012 09:58:08 GMT
    Content-Type:	text/html; charset=UTF-8
    Transfer-Encoding:	chunked
    Connection:	close
    X-Powered-By:	PHP/5.3.8-1~dotdeb.2
    Set-Cookie:	wptouch_switch_toggle=normal; expires=Fri, 06-Sep-2013 09:58:07 GMT; path=/
    Set-Cookie:	wptouch_switch_toggle=normal; expires=Fri, 06-Sep-2013 09:58:07 GMT; path=/
    X-Pingback:	http://xxx.xx/xmlrpc.php
    Location:	http://_/

    I’ve searched everywhere — including the NginX server rules — to find out why this strange replacement of the domain name happens but have not found anything… I’m running two other WP Multi-sites on similar NginX servers with basically the same setup but only one of them shows this weird issue.

    I’m at a loss here ;( … Is there anybody that can shed some light on this for me?

    Thanks! 🙂

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author BraveNewCode Inc.


    Hi Ravan,

    Have you added the Nginx server rules to exclude WPtouch’s mobile user agents to the website you’re seeing this issue on as well?

    Hi Brave,

    Thanks for your response.

    None of the three servers carry any special NginX rules for mobile devices. All is passed to PHP-FPM (index.php) and left to WordPress (and in one case also WP Super Cache) to be handled…

    Seeing as the cookie is properly set, I would think the redirection (Location:… response header) is coming from inside WordPress, but I’m not even sure if that is true.

    What am I missing here??

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘WPtouch, Multi-site and NginX’ is closed to new replies.