mhtt
V2EX  ›  问与答

做 PHP 开发的您,会使用 nginx 还是 apache 作为服务器?为什么?

  •  
  •   mhtt · Aug 10, 2016 · 3961 views
    This topic created in 3757 days ago, the information mentioned may be changed or developed.
    11 replies  •  2016-08-10 21:04:17 +08:00
    imcxy
    imcxy
    Aug 10, 2016
    1
    头像好评
    ferock
    ferock
    Aug 10, 2016
    2
    web 服务器而已,现在都走 fpm 了,基本选择 nginx
    jarlyyn
    jarlyyn
    Aug 10, 2016
    3
    nginx 反代 apache
    minishine
    minishine
    Aug 10, 2016
    4
    显然是 nginx
    RobertYang
    RobertYang
    Aug 10, 2016 via Android
    5
    Nginx
    ovear
    ovear
    Aug 10, 2016
    6
    @jarlyyn nginx 反代 apache +1
    msg7086
    msg7086
    Aug 10, 2016
    7
    用 Apache 基本是为了历史遗留原因或者 mod_php 或者支持多用户自己管理 htaccess 。
    自用的话想不出太多不用 nginx 的理由。
    cxbig
    cxbig
    Aug 10, 2016
    8
    nginx + php-fpm
    chareice
    chareice
    Aug 10, 2016
    9
    php -S 0.0.0.0:8080 -t public
    invoke
    invoke
    Aug 10, 2016
    10
    nginx+fpm
    jerray
    jerray
    Aug 10, 2016
    11
    nginx + php-fpm
    nginx 配置文件清晰灵活,可玩的花样很多,配合 lua 可以上天。(主要还是没能记住 apache 如何配置)
    至于为什么不用 nginx 反代 apache :并不想多装一个软件。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   2268 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 40ms · UTC 13:56 · PVG 21:56 · LAX 05:56 · JFK 08:56
    ♥ Do have faith in what you're doing.