mod-jk

What causes java.lang.IllegalStateException: Post too large in tomcat / mod_jk

what configuration needs to be tweaked, and where does it live, in order to increase the maximum allowed post size? ...

How do I get tomcat 5.5 to run behind apache 2 with mod_rewrite passing through requests to mod_jk and stripping app context?

Ok, so I want to get a webapp running in tomcat (5.5) to run behind apache 2 (2.2.3 to be precise) serving from the root of the site (i.e. without the context), with static content being served via apache. So if the app is running under "/myapp" on tomcat I want to use apache (plus mod_rewrite) to make it behave as if it's running under...

Url rewrite with mod_jk

In a php application, I use the following rewrite rule: RewriteRule ^test-([0-9]+).html$ test.php?id=$1 After I access this by this rule: http://localhost/testphp/test-1.html I got the expected page, and the url in browser stays in the same: http://localhost/testphp/test-1.html But if I config the same rule with mod_jk: RewriteRul...

Using ProxyPass for pages but not images

As a result of horrible, horrible errors, we've changed how we connect Apache to Tomcat. We were using mod_jk: JkMount /path ajp13 Now we're using mod_proxy_ajp: ProxyPass /path ajp://localhost:8009/path ProxyPassReverse /path ajp://localhost:8009/path However, there's a feature that JkMount offered but ProxyPass doesn't: the abili...

How do I install mod-jk in linux?

I need to run tomcat behind apache - am running suse 10 ...

How to programmatically adjust the disable directive in the mod_jk load balancer configuration?

We have a setup where we have one httpd (apache) with mod_jk talking in a load balance setup to three tomcat servers. We have to recycle each tomcat instance envery three hours. So tomcat1 will restart at 1, and tomcat2 at 2 and ... until tomcat1 recycles again at 4. We want to configure a script or a type of program to disable the ...

How can I force a request through mod_jk down to a specific worker?

If I have mod_jk set up with several workers and a load balancer worker, is there a request parameter or something that would allow me to force a specific http request down to a specific worker. For instance if I have a worker worker1 is there something like this: http://www.example.com?worker=worker1 Often we need to troubleshoot prob...

mod_jk in apache

Hi, I use Apache 2.2 and Tomcat 6.0.18 on Windows XP. I want to to redirect the URL that comes to my Apache instance into Tomcat with the module mod_jk. I want to be able to redirect from http://localhost/myvanityURL to Tomcat where the app is located at http://localhost:8080/MyApp/Start. I have installed the module. If I enter the URL...

JkMount and ProxyPass

Hi, it's possible to convert a proxypass directive like this: ProxyPass /abc.html ajp://127.0.0.1:8009/eeff/tttt/abc.html using JkMount ? something like JkMount /abc.html ... or do I need to use mod_rewrite before the JkMount (used to balance the requests) ? Thank you ...

[Apache HTTPD] How do I serve some path patterns from DocumentRoot, and others from modjk?

We have an existing situation where we have Apache 2.0 HTTPD acting as the load balancer for a cluster of backend tomcats, using mod_jk 1.2 to communicate between the two. The applications themselves are stored on the tomcat servers, and so all requests are passed through (even images, css, etc) to tomcat, using the following in the virt...

apache to tomcat: mod_jk vs mod_proxy

What are the advantages and disadvantages of using *mod_jk* and *mod_proxy* for fronting a tomcat instance with apache? I've been using mod_jk in production for years but I've heard that it's "the old way" of fronting tomcat. Should I consider changing? Would there be the benefits? thanks ...

502 Bad Gateway... invalid response from upstream server (apache and jboss)

I'm using apache on one machine to serve requests to jboss on another machine. Everything works fine when I startup jboss and I'm able to access the web app, but after a few hours I eventually start getting "The proxy server received an invalid response from an upstream server" errors. If I restart jboss then everything works fine agai...

Redirect subdomain on tomcat through apache server with mod_jk

Hi, I have a Tomcat (6.0.20) and Apache Server setup (2.2) and am trying to redirect all subdomains to a specific context, on my domain. e.g., s.example.com redirect to www.example.com Apache is fowarding requests via mod_jk (I tried mod_proxy, but the css and js didn't load as its not absolute urls). My current setup: httpd.conf: ...

mod_jk conflicts with mod_rewrite

Hello I've got an Apache and Tomcat running and I use mod_jk to bind them. I have a Tomcat worker called "tc1" and the following setup on my VirtualHost: JkMount /* tc1 JkUnMount /*.png tc1 JkUnMount /*.gif tc1 JkUnMount /*.css tc1 JkUnMount /*.js tc1 That way Tomcat serves all requests apart the ones for static files. Now I want ...

Query about Apache (httpd) dumpio log entry for the Request body which is coming NULL on Tomcat side

Hi, I am working on a hosted application running on Apache Tomcat 6.0.18 and it is hidden behind Apache (httpd). They are connected through mod_jk. We have take VPS and therefore Apache has been hosted as VirtualHost. The OS is CentOS 32 bit. The problem is that very randomly Tomcat is getting NULL request (it may have some URL specifi...

Apache & JBoss use port 80 at the same time

I have both Apache 2 and JBoss 4.2.3 on the same machine and would like both of them to use port 80. There are several ways I see people doing this mod_jk, mod_proxy, but I'm not sure which one is the best. I don't need any load balancing, but I do need HTTPS. ...

No principal in request after Apache basic authentication (basic-auth) with mod_jk

[environment] Apache 2.2.13 connect to Tomcat 5.5 with mod_jk (ajp13). Apache requires basic-auth for "/" i.e. for all URLs it serves. [problem] Once the request arrives at my app in Tomcat (it's a Servlet filter) request.getUserPrincipal() returns null. Apache, however, did authenticate the request, I did enter user/password in the bro...

Help using mod_jk to forward to backend app server

I had mod-jk working a while ago but after switching servers and modifying some files, it no longer works. I am using mod_jk-1.2.28 with JBoss 4.2.3 as the backend. In the JBoss server.xml file I have the AJP 1.3 connector defined on port 8009 and I am binding jboss to the server's new IP address. The app I am trying to forward to is ...

What does the error message "all endpoints are disconnected" mean from mod_jk

Does anyone know the meaning of the info message "all endpoints are disconnected, detected by connect check (1), cping (0), send (0)" This occurs with some regularity in my mod_jk log, but I can't find information about whether this is a problem, or just something to ignore. ...

Linking Apache to Tomcat with multiple domains.

Okay, so I've been working for a while on this, and have been searching, but so far I have not found any answers that actually answer what I want to know. I'm a little bit at the end of my rope with this one, but I'm hoping I can figure this out sometime soon. So I have Apache 2 installed and serving up standard webpages, but I also ha...