starting tomcat on port 80 on CentOS release 5.5 (Final)

前端 未结 6 1557
傲寒
傲寒 2021-02-05 15:17

I want to start Tomcat 6.0.29 on port 80. My OS is CentOS release 5.5 (Final) I changed following line in $TOMCAT_HOME/conf/server.xml



        
6条回答
  •  别那么骄傲
    2021-02-05 15:46

    Run Apache in front of Tomcat and connect all requests on Port 80 (Apache) to Tomcat on the AJP port (8009) using mod_rewrite.

    yum install httpd
    chkconfig httpd on
    vi /etc/httpd/conf.d/proxy.conf
    
    RewriteEngine On
    RewriteRule ^/(.*)$ ajp://localhost:8009/$1 [P,QSA,L]
    
    service httpd start
    

    You're done.

提交回复
热议问题