我已经安装了Apache 2.2.17和nginx 0.8.53作为负载均衡器(对于Nginx和Apache来说是静态的)。 一切正常,但当我访问mysite.com(默认端口80),我得到我的网页,可以看到Nginx服务器的HTTP头。 当我访问mysite.com:8080时,我得到相同的页面,并看到Apache2的标题。 如何禁用或redirect端口8080到主域?
使用CentOS 5. apache和nginx是从源头编译的。
您可以将使用8080(apache right?)的服务绑定到本地主机,而不是实际的IP。 在httpd.conf / apache2.conf中检查“Listen”,并replace为“Bind localhost”并重新启动服务。