Apache、lighttpd、nginx、切諾基,什麼是最好的組合? (Apache, lighttpd, nginx, cherokee, what's the best combination?)


問題描述

Apache、lighttpd、nginx、切諾基,什麼是最好的組合? (Apache, lighttpd, nginx, cherokee, what's the best combination?)

I have a blog, dynamic (php) and static content (images, css, js). I googled a lot to find benchmarks on each server and figured out that there's actually no best server. Therefore I'm looking for returns on experience to choose the good combination.

Update in response to wheaties: well, my needs are I think, the same as everyone; I need all my pages to load quickly‑‑including static content‑‑an I need the highest HTTP queries/second rate possible. Also, if it can help, I'm using MongoDB. Btw, do I still need to cache my DB queries with this?

‑‑‑‑‑

參考解法

方法 1:

Regarding Apache and Nginx:

I used Apache for almost 10 years. Then I discovered Nginx. 
Quickly I found Nginx appealing

  • simple and powerful C code
  • configuration syntax is intuitive and elegant
  • Nginx was built with performance and efficiency in mind. It is incredibly efficient, even with thousands of connections.
  • php‑fpm works well with Nginx

So, I would recommend, between the two (Apache and Nginx), Nginx.

方法 2:

Lighttpd is well known for serving static content. Nginx is a good option for dynamic (php) pages. I've heard of few sites which use lighttpd only for serving static content. 

方法 3:

Lighttpd for static content and some caching scripts for dynamic (PHP).

(by seriousdevDéjà vuManishOleksandr Skrypnyk)

參考文件

  1. Apache, lighttpd, nginx, cherokee, what's the best combination? (CC BY‑SA 3.0/4.0)

#lighttpd #webserver #apache #nginx #cherokee






相關問題

Lighttpd 單個子域重定向/重寫 (Lighttpd single subdomain Redirect/rewrite)

在 lighttpd 中包含許多重寫指令 (Including many rewrite directives in lighttpd)

lighttpd:禁用 CGI 緩衝 (lighttpd: disable CGI buffering)

lighttpd:身份驗證後如何將端口(僅對本地主機可見)轉發到 WAN? (lighttpd: How to forward port (visible only to localhost) to WAN after authentication?)

在centos 404錯誤中安裝Lighttpd (install of Lighttpd in centos 404 error)

在 Lighttpd 中配置子域 (Configure subdomains in Lighttpd)

如何根據用戶登錄重定向 Lighttpd webdav 掛載 (How can I redirect a Lighttpd webdav mount depending on user login)

如何在 Windows 2003 上使用 mongrel、lighttpd 和 iis 設置負載平衡的 Rails Web 服務器 (how do i set up a load balanced Rails web server using mongrel, lighttpd and iis on windows 2003)

Lighttpd:視頻無法正常流式傳輸 (Lighttpd: Videos not streaming properly)

Apache、lighttpd、nginx、切諾基,什麼是最好的組合? (Apache, lighttpd, nginx, cherokee, what's the best combination?)

web.py + lighttpd + matplotlib 不工作 (web.py + lighttpd + matplotlib not working)

在 lighttpd 中重寫後得到錯誤的 PATH_INFO (Get wrong PATH_INFO after rewriting in lighttpd)







留言討論