How do I redirect from Apache to Tomcat?

后端 未结 5 591
有刺的猬
有刺的猬 2020-12-07 12:31

I\'m working on my first Java site. I\'m running Apache Tomcat on port 8080, and Apache HTTPD on port 80. The current URL that I can access the site at is (for example) 123.

5条回答
  •  悲&欢浪女
    2020-12-07 12:52

    Both the helpful answers above are good, but I much prefer mod_proxy over mod_jk. There's no extra installation to do for mod_proxy, unlike mod_jk, and the setup is much easier. mod_jk gives you more control over detailed tuning of Tomcat parameters, but if you just want a simple redirect from Apache to Tomcat, mod_proxy is the way to go.

提交回复
热议问题