简体   繁体   English

Apache,Tomcat和mod代理http设置

[英]Apache, Tomcat and mod proxy http set up

I am running a web application on Tomcat (port 8080) with Apache (port 80) in front (on Ubuntu) using mod-proxy_http as the connector. 我使用mod-proxy_http作为连接器,在Tomcat(端口8080)上运行Web应用程序,前面(在Ubuntu上)使用Apache(端口80)。 The app is available through port 80 but also through port 8080. This is actually quite useful (when deploying/testing). 该应用程序可通过端口80,也可通过端口8080获得。这实际上非常有用(部署/测试时)。

Are there are any particular disadvantages/vulnerabilities with keeping port 8080 open in this way? 以这种方式保持端口8080打开是否有任何特殊的缺点/漏洞?

My opinion is that you should close 8080 port, or at least allow it for certain host/IP. 我的意见是你应该关闭8080端口,或至少允许它用于某些主机/ IP。 Less open ports, less problems. 开放端口少,问题少。 Opening port 8080 could let attacker to have more entry points (80 and 8080, using different technologies) and exploit different techniques. 打开端口8080可以让攻击者拥有更多的入口点(80和8080,使用不同的技术)并利用不同的技术。 Also HTTPd server has much better security modules. HTTPd服务器也有更好的安全模块。

Have you consider using mod_ajp_proxy? 你考虑过使用mod_ajp_proxy吗?

Hope this helps. 希望这可以帮助。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM