Hot answers tagged

6 votes
Accepted

Failed to load resource: net::ERR_CONNECTION_RESET

I've finally solved the issue. The breakthrough occured when I followed @john ktejik's directives: https://stackoverflow.com/questions/4390134/failed-to-load-resource-under-chrome/26742627 I came ...
user avatar
5 votes

Failed to load resource: net::ERR_CONNECTION_RESET

I had similar problems when running a confluence instance (within a tomcat server) behind apache2 using either mod_jk or mod_proxy. When I tried to view the confluence wiki pages, I received following ...
user avatar
3 votes

mod_jk produces Error smh errno=13

The correct answer is online: http://www.laliluna.de/articles/2008/09/14/apache_tomcat_mod_jk_selinux.html The part you need is near the bottom, which I will copy and paste here in case that page ...
user avatar
3 votes

Why - Could not find worker with name 'jk-manager' in uri map post processing?

I believe that you need the tomcat admin package (for me, it's tomcat6-admin) to provide jk-manager and jk-status. After installing that, you just need to configure these two items in your workers....
user avatar
2 votes
Accepted

Apache httpd mod_rewrite with Tomcat resulting in lost JSESSIONID

I did some more research after reading CédricC's suggestions and found this: Configuring Apache, Tomcat, mod_jk and mod_rewrite to serve up tomcat from top-level I followed the instructions by Kevin ...
user avatar
  • 151
2 votes
Accepted

Virtual Hosts, apache, mod-jk and tomcat

I've figured that out using mod_proxy instead of mod_jk and adding these lines : ProxyPass / http:// SERVER_IP:8080/ ProxyPass /myapp/ http:// SERVER_IP:8080/myapp And this line for cookies : ...
user avatar
2 votes
Accepted

Log Outgoing Apache Port on AJP Connection

The remote port number is available to your application in the environment variable JK_REMOTE_PORT. There's no corresponding JkRequestLogFormat string to log the remote port, but it can be logged in ...
user avatar
2 votes

mod_jk unable to connect with tomcat9

Adding secretRequired="false" to the <Connector> in server.xml fixed it for me. <!-- Define an AJP 1.3 Connector on port 8009 --> <Connector protocol="AJP/1.3" ...
user avatar
2 votes
Accepted

Using JkMount in a LocationMatch directive in Apache 2.2

Alternative to JkMount: <LocationMatch "^/(?!foo)"> SetHandler jakarta-servlet SetEnv JK_WORKER_NAME ajp13_worker </LocationMatch>
user avatar
1 vote
Accepted

Out of 3, Only one mod_jk worker is not working

Apache is unable to resolve the hostname xx3 of the worker. You probably have hard-coded entries in /etc/hosts for xx1.com and xx2.com, but not for xx3. You can find out by issuing: $ getent hosts ...
user avatar
  • 14.9k
1 vote
Accepted

IIS 7.5 JK connector to Tomcat

I got it to work. The issue was that I only replaced the DLL file itself and also Disabled the Default Application Pool's 32-bit mode. When I did that it did not work. I went back and removed the ...
user avatar
1 vote

Tomcat, Apache, MySQL tuning

First of all, you need to reconsider, whether your app really needs to "phone home" every 15 minutes! This puts burdon not only onto your server, but also on the mobile network, on people's phones and ...
user avatar
1 vote

tomcat 7.0.100 AJP connector with mod_jk on another host

try this: <Connector port="8009" protocol="AJP/1.3" redirectPort="8443" address="0.0.0.0" allowedRequestAttributesPattern=".*" secretRequired="false" /> https://tomcat.apache.org/tomcat-7.0-...
user avatar
1 vote

JkMount on the basis of FQDN for multiple applications

I have found the problem, it was different SSL Certs for both URL's. Apache was routing to the default VirtualHost 0:443 [the first one]. Solution I got is NameBasedSSLVHostsWithSNI You may find ...
user avatar
1 vote
Accepted

Sporadic mod_jk Client Errors when uploading large files

Have you tried to downgrade Apache/modSSL to 2.4.38? We had file upload issues since we upgraded to 2.4.39.
user avatar
1 vote

errno=13. Unable to start due to shared memory failure

You can generate a local policy module to allow this access. Do allow this access for now by executing: # grep httpd /var/log/audit/audit.log | audit2allow -M mypol # semodule -i mypol.pp
user avatar
1 vote
Accepted

How do I tell mod_jk with load balancing to stop using a specific tomcat instance?

You can control the worker status/behaviour with the "activation" attribute. https://tomcat.apache.org/connectors-doc/common_howto/loadbalancers.html#Advanced_Load_Balancer_Worker_Properties For ...
user avatar
  • 1,979
1 vote

How do I correlate the Apache mod_jk log with the Tomcat instance log for troubleshooting?

Actually it's in front of you, the failed worker is the one inside brackets, called myJbossServer. Check you workers.properties for that worker and you will find it's IP or hostname. Around that ...
user avatar
  • 2,227
1 vote

Failed to load resource: net::ERR_CONNECTION_RESET

Faced similar problem (Chrome: ERR_CONNECTION_RESET) when accessing rstudio server hosted in CENTOS and tried to access http://:8787 from Windows 10 desktop; After successful login into R-StudioServer,...
user avatar
1 vote

Request Entity Too Large mod_jk

There was a typo in worker.properties worker.local.local.max_packet_size=65536 instead of worker.local.max_packet_size=65536
user avatar
  • 131
1 vote

Why does mod_jk bypass Apache authorization?

It turns out the nested 1-arg syntax of JkMount is pretty useless, because it requires the trailing wildcard, while Location doesn't understand it. What works is pulling it out: JkMount /XYZ/* XYZ &...
user avatar
  • 131
1 vote
Accepted

How to reload mod_jk

Chances are that the module is in your configuration two places at once. So go through your configs, and search for "jk_module" or just "jk", if you see it load twice, that's most likely the issue. ...
user avatar
1 vote

Compression of Tomcat mod_jk results in Apache httpd

Blama, I agree with #1 in that compression can be handled with apache or another web server. Here are my thoughts: I use apache mod_proxy or nginx in front of tomcat. This allows me to handle SSL, ...
user avatar
1 vote

Apache Mod_rewrite rule working on one server, but not another

This is old but since there is no accepted answer. I had similar problem with same re-write rules working in production but not development environment. Found this setting that was missing on ...
user avatar

Only top scored, non community-wiki answers of a minimum length are eligible