But after this update, default behavior is that the AJP connector is willing to accept requests only made as localhost (loopback). Prior to this update, the tomcat AJP connector was willing to accept requests from any IP address, and so it wasn't required to explicitly specify "address" property. In 8.5.51 onwards, the default listen address of the AJP Connector wasĬhanged to the loopback address rather than all addresses. ((AbstractAjpProtocol)connector.getProtocolHandler()).setSecretRequired(false) tProperty("address","0.0.0.0") ĬtProperty("allowedRequestAttributesPattern",".*") Adding below mentioned properties to the ajp connector helped my case. I faced a similar issue upon upgrading the tomcat version. Is what causing me this problem but I don't know how to solve it. In 8.5.51 onwards, the default listen address of the AJP Connector was changed to the loopback address rather than all addresses.O.a.c.c.StandardEngine : Starting Servlet engine: O.a.c.c.StandardService : Starting service O.a.c.a.AjpNioProtocol : Initializing ProtocolHandler O.a.c.h.Http11NioProtocol : Initializing ProtocolHandler In the app.properties : =8500Īnd this is tomcat logs : o.s.b.w.e.t.TomcatWebServer : Tomcat initialized with port(s): 8080 (http) 8500 (http) ((AbstractAjpProtocol) connector.getProtocolHandler()).setSecretRequired(false) This is my spring boot tomcat's configuration Connector connector = new Connector("AJP/1.3") ProxyPassReverse "/backend" "ajp://10.0.75.1:8500/backend"Īnd I access my web app by a domain name on my /etc/hosts : velop I have my dev environment set up this way :Īn Angular app (node server running on 4200)Ī spring boot backend (ajp connector set up on tomcat on port 8500)Ī frontal apache2 server (on a docker container) set up to redirect requests to both apps : AH00896: failed to make connection to backend: 10.0.75.1, referer: My apache2 can no longer connect (by ajp) to my Spring boot's embedded tomcat after upgrading Spring boot's version from 2.1.4 to 2.3.2.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |