baskice
V2EX  ›  问与答

nginx if 是否比 PHP 重定向快?

  •  
  •   baskice · Jan 17, 2017 · 2125 views
    This topic created in 3428 days ago, the information mentioned may be changed or developed.
    4 replies    2017-01-17 10:09:19 +08:00
    cnnblike
        1
    cnnblike  
       Jan 17, 2017 via iPhone
    是的吧, fastcgi 和 php 的虚拟环境也是耗时间的
    techmoe
        2
    techmoe  
       Jan 17, 2017 via Android
    一个在 nginx 层就跳了一个还绕一层 fpm ,显而易见
    zjqzxc
        4
    zjqzxc  
       Jan 17, 2017
    我记得有说法是慎用 nginx 的 if ,然而我并没有做个试验(考虑到尽量减轻 nginx 的负担以及灵活性,我一般都用后端语言来实现);楼主有兴趣的话实验下看看
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2752 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 36ms · UTC 15:21 · PVG 23:21 · LAX 08:21 · JFK 11:21
    ♥ Do have faith in what you're doing.