Nginx的和Apache [英] Nginx and Apache

查看:121
本文介绍了Nginx的和Apache的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是很有用的Nginx服务器的静态数据(图像,CSS,JS)和动态数据使用Apache程序(App code +数据库)?

is it useful to server static data using Nginx(Images,css,js) and dynamic data (App code+database) using Apache ?

推荐答案

它不仅是非常有用的服务Nginx的静态图像,但有Nginx的代理Apache是​​一个巨大的胜利,以及。这是因为缓慢的客户让Apache保持线程忙了比需要更长的时间。 nginx的可以处理缓慢客户端,并允许Apache以尽可能快地完成的请求,释放对其他请求的螺纹(和存储器)。 Nginx的将尽可能快地在本地连接将允许接受请求,并滴入响应返回给客户端慢

Not only is it useful to have Nginx serve static images, but having Nginx proxy to Apache is a big win as well. This is because slow clients cause Apache to keep threads busy for longer than needed. Nginx can deal with the slow client and allow Apache to finish the request as fast as possible, freeing the thread (and memory) for other requests. Nginx will accept the request as fast as your local connection will allow, and trickle the response back to the slow client.

这篇关于Nginx的和Apache的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆