ProxyPass, ProxyReverse vs AJP

后端 未结 3 1607
[愿得一人]
[愿得一人] 2021-02-02 15:35

I currently have a Tomcat + Apache HTTP server setting to serve my Java servlet:

ProxyPass /myservice http://localhost:8080/myservice
ProxyPassRerverse /myservic         


        
3条回答
  •  别跟我提以往
    2021-02-02 16:13

    Do it like this:

    in the apache config:

    
      ProxyPass ajp://localhost:8009/foo
      ProxyPassReverse ajp://localhost:8009/foo
    
    

    And then in your server.xml:

    
    

    That should pass everything through. The AJP protocol passes the info, but http: doesn't.

    You may not want secure="true", I use that because SSL is handled at the apache layer and I need tomcat to know that the connection should be considered a secure one.

提交回复
热议问题