问题描述
我计划我所有的静态内容移动到一个CDN,所以我的服务器上我只有动态内容的左侧。我现在有Nginx的设置为反向代理到Apache。随附在由Nginx的直接运往而不必去到Apache静态的请求。
I am planning to move all my static content to a CDN so on my server I only have dynamic content left. I now have Nginx set up as reverse proxy to Apache. The static request that came in where directly delivered by Nginx without having to go to Apache.
在这种情况下,Nginx的处理请求的很大一部分,我可以清楚地看到Nginx的必要性。
In this case Nginx handled a large portion of the request and I can clearly see the necessity of Nginx.
现在,我感动了所有的静态内容到另一个域名,是否还需要有nginx的Apache中的前面。因为现在所有的请求都默认动态请求和所有去到Apache。
Now that I moved all the static content to another domain, is there still a need to have nginx in front of Apache. Because now all the request are by default dynamic requests and all go to Apache.
是否有其Nginx的和Apache运行仅动态内容的任何其他好处。
Are there any other benefits of having Nginx and Apache running for only dynamic content.
我的动态内容的PHP / MySQL
My dynamic content is PHP/MySQL
编辑:
需要明确的是:的我现在有Nginx的反向代理。它提供静态和动态内容。的但我移动我的静态文件到一个CDN。我当时还需要我的域名Nginx的。
To be clear: I now have Nginx as a reverse proxy. It delivers static and dynamic content. But I am moving my static files to a CDN. Do I then still need Nginx on my domain.
推荐答案
没有,你不需要再nginx的
No, you don't need nginx anymore.
这篇关于将一个Nginx的作为对动态内容的Apache帮助反向代理只的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!