How do I redirect from Apache to Tomcat?

后端 未结 5 596
有刺的猬
有刺的猬 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 13:02

    The correct way to do things is to leave Apache at 80 and Tomcat at 8080 and use a plug in (preferably mod_proxy) to proxy Tomcat from Apache. mod_proxy would only take you 10 minutes to set up.

    This how-to is very simple to follow.

提交回复
热议问题