我有一些抱怨,我的网站需要很长时间来加载图像,只是加载主页面可能需要10秒的速度testing。 当谈到nginx时,我有点不知所措,所以任何关于如何添加服务器端caching的帮助都是非常有价值的。 它甚至可能是服务器中的磁盘的问题,但这是我的nginx conf文件的一部分:
#user nobody; worker_processes 1; error_log logs/error.log; #error_log logs/error.log notice; #error_log logs/error.log info; #pid logs/nginx.pid; events { worker_connections 1024; } http { include mime.types; default_type application/octet-stream; sendfile on; #tcp_nopush on; #keepalive_timeout 0; keepalive_timeout 65; gzip on; server { ... # various location based directing goes on here
感谢您的期待,任何帮助将是伟大的。
Windows的nginx显然是beta软件。 我真的build议转移到实际经过testing并知道在Windows上工作的东西。 阿帕奇是我的build议。
从nginx的Windows文档 :
Only the select() request processing method is currently used, so high performance and scalability should not be expected.
我没有看到任何关于你的configuration的具体错误 ,除了可能你的keepalive_timeout可能会更好地设置为5或10.这样做是不会解决你的问题寿。 我有一些想法: