Forum Replies Created

Viewing 15 replies - 1 through 15 (of 15 total)
  • Jonathan, thanks for the NGINX adaptation. I put this in the server block of our config and it works like a charm. What I don’t understand, however, is why this isn’t picked up when non-existent content is passed to index.php via

    if (!-e $request_filename) { rewrite . /index.php last; }

    Anyone have any insight?

    Thread Starter derickschaefer

    (@derickschaefer)

    Frederick, mostly clear here. NGINX as reverse proxy all rules in .htaccess working fine. NGINX/PHP-FMP I do see intermittent false positives on plugin claiming that minify rewrites not working on 9.2.4 . They don’t occur with 9.2.3. I have a few sites I can repro this in if you want to have a look.

    To add to the thread, one of the biggest advantages for W3TC is NGINX support. If a) you can remove Apache from the mix and b) deliver cached content from NGINX as a web server, it is a game changer.

    Frederick, I hats off to you on the discipline required to get those rewrite rules fixed. If you lower the memory requirements of W3TC, it will be lights out.

    One request is do keep in mind that NGINX (and even some high perf Apache configs) are static. Thus, your age long assumption that you can just output your rewrite rules to a .htaccess file, aren’t always true. Every upgrade of W3 requires rule changing, etc.

    Do you expect rewrite rules to change much in the future?

    Thread Starter derickschaefer

    (@derickschaefer)

    Marcel,
    For production sites, we actually use NGINX as a reverse proxy so it listens on port 80 and hands requests off to Apache that is listening on another port. Our goal with this config was to have NGINX take ALL of initial traffic spikes including rewrite rules processing for minified and static files.

    Though we’ve played around quite a bit with nginx/php-fpm, we don’t run it in production. Interesting that you are seeing the same types of issues.

    I’m sure Frederick has his hands full but I’m hoping that he eventually is able to spare a little more time to further evolve the NGINX support.

    We run our rewrite rules in static config files in Apache and have no issues. W3TC is a great plugin, btw.

    Thread Starter derickschaefer

    (@derickschaefer)

    Not fixed in 3.2.1 . I think we are min’ing something out via your rewrite rules. Have you tested these rewrite rules as a reverse proxy solution or just intended it to be for NGINX only installs?

    We can gen up a test VPS with this exact config if you want to see it in action.

    Thread Starter derickschaefer

    (@derickschaefer)

    phasetransitions, sorry for missing your response. We were actually just going down the path of removing Apache from the mix. I’ll report back.

    Frederick, the other news here is that with WP 3.2, NGINX rewrite rules for (PageCache = Disk Enhanced, Min = Disk, PHP Cache = APC, and Browser Cache on) is causing text in TinyMCE to go white. I haven’t had time to trouble shoot that yet. Any ideas before I get started?

    (config is NGINX port 80 reverse to Apache on another port, rewrite rules at NGINX)

    Thread Starter derickschaefer

    (@derickschaefer)

    OK, we have reproduced the problem consistently and it appears to be an NGINX issue. Still, I’m going to post it out here in the event that it triggers a thought with the plugins author. Here are our notes from firing 10K requests at our site.

    1. A client requests /
    2. Nginx in 99% cases returnc cached page (prepared by W3TC).
    3. But in 1% nginx can’t find cached page and tries to handle one of suggested indexes (index.htm index.html index.php).
    4.The 1st two are absent, so nginx tries to handle /index.php . It passes this request to apache and apache returns 301 to / .
    5. Nginx passes this 301 to the client.

    In terms of step 4, we can turn off W3TC and Apache will handle the index.php just fine without throwing the 301.

    derickschaefer

    (@derickschaefer)

    Hmmmm. . .browser cache is a big part of the bennefit. Sucks to have to do that. Our re-writes are in NGINX so sharing ours with you wouldn’t do you a lot of good.

    Ask WPTouch guys as I too agree that the solution likely is over there.

    derickschaefer

    (@derickschaefer)

    Megazone,

    We just went through this with a customer’s blog and finally got resolved by adding the following long list under Page Cache, Minify and CDN. There is hope on this one as we were a bit frustrated too. We are using Pro version of WPTouch. Good luck with it.

    iphone
    ipod
    ipad
    aspen
    incognito
    webmate
    android
    dream
    cupcake
    froyo
    blackberry9500
    blackberry9520
    blackberry9530
    blackberry9550
    blackberry 9800
    blackberry 9780
    webos
    s8000
    bada
    2.0 MMP
    240×320
    ASUS
    AU-MIC
    Alcatel
    Amoi
    Audiovox
    AvantGo
    BenQ
    Bird
    Blazer
    CDM
    Cellphone
    DDIPOCKET
    Danger
    DoCoMo
    Elaine/3.0
    Ericsson
    EudoraWeb
    Fly
    HP.iPAQ
    Haier
    Huawei
    IEMobile
    J-PHONE
    KDDI
    KONKA
    KWC
    KYOCERA/WX310K
    LG
    LG/U990
    Lenovo
    MIDP-2.0
    MMEF20
    MOT-V
    MobilePhone
    Motorola
    NEWGEN
    NetFront
    Newt
    Nintendo Wii
    Nitro
    Nokia
    Novarra
    O2
    Opera Mini
    Opera.Mobi
    PANTECH
    PDXGW
    PG
    PPC
    PT
    Palm
    Panasonic
    Philips
    Playstation Portable
    ProxiNet
    Proxinet
    Qtek
    SCH
    SEC
    SGH
    SHARP-TQ-GX10
    SPH
    Sagem
    Samsung
    Sanyo
    Sendo
    Sharp
    Small
    Smartphone
    SoftBank
    SonyEricsson
    Symbian
    Symbian OS
    SymbianOS
    TS21i-10
    Toshiba
    Treo
    UP.Browser
    UP.Link
    UTS
    Vertu
    WILLCOME
    WinWAP
    Windows CE
    Windows.CE
    Xda
    ZTE
    dopod
    hiptop
    htc
    i-mobile
    nokia
    portalmmm
    vodafone
    BlackBerry7100i
    Nokia6650d
    SAMSUNG-SGH-A737
    HTC_P3650
    HTC_HD2_T8585
    HTC-ST7377
    htc_touch_pro2_t7373
    HTC_Dream
    HTC-P4600
    HTC_Touch_Pro_T7272
    HTCP3300
    LG-CT810
    LGE-MX380
    BlackBerry9650
    BlackBerry9700
    BlackBerry9630
    BlackBerry9000
    BlackBerry8330
    BlackBerry8703e
    BlackBerry8820
    BlackBerry7100i
    BlackBerry7130e
    BlackBerry7250
    BlackBerry7230
    BlackBerry7730
    Cricket-A200
    MOT-COOL0
    MOT-V9mm
    MOT-L6
    MOT-V3r
    MOT-V3i
    MOT-A-1C
    MOT-V620
    MOT-V600
    MOT-E398
    mot-V3
    Samsung-SPHM800
    SAMSUNG-SGH-A867
    SonyEricssonW595
    SonyEricssonK800i
    POLARIS

    We are running into this as well and it is impacting a plugin we are writing. Did you ever find an answer for this? Is it a bug in WordPress?

    Peter,

    I totally agree with you and we will get this out in the next release. We had to deal with the fact that subdomained installs were using the long path names which caused all kinds of issues. This was more of a quick fix.

    We are circling back on a few things to get another release out and we’ll come up with a more flexible solution.

    thanks for the insight on what you are doing with your wordpress blog.

    Derick

    Tod7,

    I am so sorry for the delay in response. I didn’t see this posted.

    We have not tested it in this scenario. Does this setup create multiple Uploads folders for users?

    Derick

    JohnNCT,

    We have diagnosed the problem with our subdomain installation. We used the MediaTemple 1-Click install to install our subdomain install of WordPress. In the miscellaneous settings tab, it declared the uploads folder as a fully qualified path /var/www/vhost. . . . instead of the typical wp-content/uploads. Look in that setting and tell me if that describes your install.

    JohnNCT,

    We just discovered that on one of our blogs that is a subdomain installation. Please disable WP-MalWatch and we will dive into this and ensure that v1.0.3 (clean up release of reported bugs) has this worked out.

    This should be in the next week or so. I’ll post a reply on this thread and I do apologize for not adding a subdomain blog to our testing scenarios.

    Did you ever figure this out as I have the same problem.

Viewing 15 replies - 1 through 15 (of 15 total)