开发者

Can Struts 2 run on Apache2 server without Tomcat?

开发者 https://www.devze.com 2023-02-11 13:58 出处:网络
Please help! I got very frustrated with this assignment to demonstrate Apache and Java Struts. I cannot make struts apps run in the Apache web directory. They only work under Tomcat.开发者_JS百科

Please help! I got very frustrated with this assignment to demonstrate Apache and Java Struts. I cannot make struts apps run in the Apache web directory. They only work under Tomcat.开发者_JS百科

Can I use Struts only under Apache without Tomcat? ... Thanks very much!


Apache and Tomcat serve different purposes. You cannot use Apache to run Struts because it's just a web server, not a java web container.

What you could do is to setup Apache as a reverse proxy to a tomcat instance, so the "Internet" would talk to your Apache, but still Tomcat would be serving your requests in the end.

0

精彩评论

暂无评论...
验证码 换一张
取 消