ajp

Custom Error Page not showing with using AJP Proxy with Apache

一笑奈何 提交于 2021-01-29 11:41:14
问题 I am trying to setup custom 403 and 404 error pages on Apache. Server config is as follows: Server version: Apache/2.4.29 (Ubuntu) Server built: 2019-04-03T13:22:37 Ubuntu 18.04.2 LTS I use Apache for AJP reverse proxy, as below: ProxyVia On ProxyRequests Off ProxyPreserveHost On ProxyPass /app ajp://localhost:8009/share ProxyPassReverse /app ajp://localhost:8009/share My ErrorDocument code is as below: ErrorDocument 404 /cah-404.html ErrorDocument 403 /cah-403.html Now if I go via browser to

Connecting Apache to Tomcat with AJP

强颜欢笑 提交于 2021-01-28 08:29:40
问题 I am trying to launch a localhost application on Ubuntu with Apache and proxy it to Tomcat so that I can use .jsp pages in my application. It seems that this is possible and I think that I am pretty close, but I can't seem to get it quite right. Any help is greatly appreciated! I've never used apache or tomcat before, so please don't hate me if any of this seems stupid. I've got Apache hosting a site at localhost with this code for the host: <VirtualHost *:80> ServerName localhost ServerAlias

Springboot -The AJP Connector is configured with secretRequired=“true” but the secret attribute is either null or “” after upgrade to 2.2.5

孤街醉人 提交于 2020-07-01 13:25:30
问题 Caused by: java.lang.IllegalArgumentException: The AJP Connector is configured with secretRequired="true" but the secret attribute is either null or "". This combination is not valid. at org.apache.coyote.ajp.AbstractAjpProtocol.start(AbstractAjpProtocol.java:264) at org.apache.catalina.connector.Connector.startInternal(Connector.java:1035) ... 22 common frames omitted I am seeing the above errors after upgrading the springboot from 2.1.9 to 2.2.5. The upgrade was necessary to overcome

How to Forward HTTP methods from apache2 using proxy_ajp to tomcat

浪尽此生 提交于 2020-04-30 06:38:47
问题 I have configured and web server with apache2 then proxy request to tomcat with ajp protocol like this: <host *:443> ProxyRequests On ProxyPreserveHost On <Proxy *> Order allow,deny Allow from all AllowMethods GET PUT DELETE POST OPTIONS </Proxy> ProxyPass / ajp://some_vhost:8009/ ProxyPassReverse / ajp://some_vhost:8009/ All request received from apache2 server forward to GET HTTP method to tomcat, so if you are listening for some rest operation a post method this behavior causes a non

How to Forward HTTP methods from apache2 using proxy_ajp to tomcat

帅比萌擦擦* 提交于 2020-04-30 06:37:47
问题 I have configured and web server with apache2 then proxy request to tomcat with ajp protocol like this: <host *:443> ProxyRequests On ProxyPreserveHost On <Proxy *> Order allow,deny Allow from all AllowMethods GET PUT DELETE POST OPTIONS </Proxy> ProxyPass / ajp://some_vhost:8009/ ProxyPassReverse / ajp://some_vhost:8009/ All request received from apache2 server forward to GET HTTP method to tomcat, so if you are listening for some rest operation a post method this behavior causes a non

Apache & Tomcat: ProxyPass and ProxyPassReverse

醉酒当歌 提交于 2020-01-30 14:36:29
问题 I'am having troubles configuring Apache and Tomcat, this is the scenario: I have an Apache Web Server, running and working normally, I can access to this one just typing: http://localhost Also, in this host, I have a Tomcat running and working fine; I've created a mini web-app which files are inside "prueba" directory, I can access typing: http://localhost:8080/prueba (I know that Apache is running in 80 port and Tomcat in 8080) What I want to do is that througt Apache an user can access to

How to set the AJP packet size in Tomcat?

不想你离开。 提交于 2020-01-23 03:07:10
问题 I've followed the instructions here for setting the maxPacketSize in AJP... AJP connector doc It states in the doc that I need to "you must also change the packetSize attribute of your AJP connector on the Tomcat side! The attribute packetSize is only available in Tomcat 5.5.20+ and 6.0.2+." I have no idea how to change it though! This doc talks about changing it in Tomcat, but I can't find out WHERE I actually need to change it (what properties file/config file etc) Tomcat AJP Connector Can

Grails 2.1.0 app tomcat 7.0.22 Session empty after redirect

馋奶兔 提交于 2020-01-13 16:25:27
问题 I am just learning grails and have a problem with an app that works fine when I run it in Netbeans but shows strange behavior when deployed to Tomcat 7.0.22 on a Centos 5.4 server. I am using the proxy_ajp to make the app available with apache. The problem seems to be with the session not being maintained after a redirect so that I lose the login information causing the app to try to login again. My proxy_ajp settings are <Location /PreyerBooks > ProxyPass ajp://localhost:8011/PreyerBooks

Forward REMOTE_USER to tomcat via AJP (e.g. for shibboleth)

那年仲夏 提交于 2020-01-13 10:14:48
问题 Today I just got stuck with the following problem: 1. I configured apache for basic authentication (require valid user); which worked. 2. I further configured apache to forward requests for some path (/idp in my case) to a tomcat servlet (shibboleth IDP). The result was, that the shibboleth IdP (ECP profile) told me there was no "REMOTE_USER" set (it's using the httpRequest.getRemoteUser() method to check this; it returned null). I tried a lot of things like SetEnv and RewriteRule stuff, but

Duplicated status code in response

老子叫甜甜 提交于 2020-01-03 04:29:08
问题 I usually deploy Java webapps in Tomcat servers and access them through an Apache proxy, using proxy_ajp. The thing is, in my latests setups (which are all basically the same) I see that the status code I get in all my requests is duplicated (i.e., "Status Code:200 200"). I get this in every browser, in Postman, and for any status code I might get, and everything seems to work fine, but I'm concerned my setup might not be optimal. Although I can't find a solution, I have narrowed the issue