我得到了应用服务器运行在Windows - IIS6.0与Zend服务器执行PHP。我正在寻找轻量级的静态内容仅web服务器在同一台机器上,这将重温IIS形式处理静态内容和提高性能。
它只需要静态内容web服务器-最大的小和最大的有效- lighttpd似乎太大了,因为允许FastCGI。
我正在寻找:Windows,静态内容,快速,轻量级。
我使用的是Windows Server 2003。
我得到了应用服务器运行在Windows - IIS6.0与Zend服务器执行PHP。我正在寻找轻量级的静态内容仅web服务器在同一台机器上,这将重温IIS形式处理静态内容和提高性能。
它只需要静态内容web服务器-最大的小和最大的有效- lighttpd似乎太大了,因为允许FastCGI。
我正在寻找:Windows,静态内容,快速,轻量级。
我使用的是Windows Server 2003。
您可以使用Python作为托管静态内容的快速方法。在Windows上,有很多运行Python的选项,我个人使用CygWin和ActivePython。
要使用Python作为简单的HTTP服务器,只需将您的工作目录更改为包含静态内容的文件夹,并键入Python -m SimpleHTTPServer 8000,该目录中的所有内容将在HTTP:/localhost:8000/中可用
Python 3
要使用Python 3.4.1(可能还有其他版本的Python 3)执行此操作,请使用http。服务器模块:
python -m http.server <PORT>
# or possibly:
python3 -m http.server <PORT>
# example:
python -m http.server 8080
在Windows上:
py -m http.server <PORT>
考虑thttpd。它可以在windows下运行。
引用维基百科:
“它是唯一适合高服务 静态数据的卷请求”
在cygwin下编译的带有cygwin dll的thttpd-2.25b版本已经可用。它是单线程的,特别适合服务图像。
我知道的最小的是lighttpd。
Security, speed, compliance, and flexibility -- all of these describe lighttpd (pron. lighty) which is rapidly redefining efficiency of a webserver; as it is designed and optimized for high performance environments. With a small memory footprint compared to other web-servers, effective management of the cpu-load, and advanced feature set (FastCGI, SCGI, Auth, Output-Compression, URL-Rewriting and many more) lighttpd is the perfect solution for every server that is suffering load problems. And best of all it's Open Source licensed under the revised BSD license.
官网:http://www.lighttpd.net/
编辑:删除Windows版本链接,现在是一个垃圾邮件/恶意软件插件网站。
nginx或G-WAN
http://nbonvin.wordpress.com/2011/03/24/serving-small-static-files-which-server-to-use/