Questions tagged [mod-jk]

mod_jk is the connector used to connect the Tomcat servlet container with web servers using AJP protocol.

mod_jk, the Apache Tomcat Connector, is a replacement to the elderly mod_jserv. It is a completely new Tomcat-Apache plug-in that handles the communication between Tomcat and Apache.

422 questions
0
votes
1 answer

404 errors accessing web app URLs with Tomcat over local IP, but works fine with external IP

I have two Linux servers connected via a cross-connect cable with internal IP addresses 192.168.0.1 (hostA) and 192.168.0.2 (hostB). hostA runs CentOS 5, and hostB CentOS 7. hostB runs Apache 2.4.x, and Tomcat 8.5.9. All web traffic gets routed to…
user46688
  • 733
  • 3
  • 11
  • 29
0
votes
3 answers

Apache mod_jk not loading CSS

I am using linux server with CentOS 7,Apache 2.4.23 with mod jk installed. mod jk is installed and configured properly which opens the site but its not loading the css of that site. I have tried various rewrite rules too but the problem remains…
Dushyant Gohil
  • 67
  • 1
  • 12
0
votes
1 answer

How to setup glassfish 4.1.1 behind apache on Ubuntu 16.04 server

I want to setup Apache and Glassfish on Ubuntu 16.04 server. I have installed apache2 libapache2-mod-jk glassfish The following are the steps I have followed Configuring the MPM module Set MaxRequestWorkers to 400 in…
qualebs
  • 1,291
  • 2
  • 17
  • 34
0
votes
1 answer

Apache clustering and load balancing with tomcat 8 in ubuntu

I want to do clustering and load balancing for my applications running in tomcat. I am using ubuntu, apache version 2.4.18 and two tomcat 8.5 instances. I tried with mod_jk for this but it is not working for me. following is my configuration in…
Prasad
  • 519
  • 9
  • 22
0
votes
1 answer

Apache proxying Multiple Tomcat Instances with Mod_JK

I have an Apache server, which is suppose to redirect all the requests to two Tomcat instances: "geonetwork" and "geoserver". They are both accessible from the Apache server, but somehow I cannot make the redirection work. My hosts file looks like…
doublebyte
  • 1,225
  • 3
  • 13
  • 22
0
votes
1 answer

mod_jk with JBoss 5.x Community Server

Configuring Apache's mod_jk (used just as a proxy, not as loadbalancer) is supported with JBoss 5.x Community Server?
0
votes
1 answer

mod_jk not working with apache2.2 and tomcat7

I have configured Apache 2.2 with mod_jk and it is working fine, But in one scenario I need to rewrite from mydomain1 to mydomain2.com I have googled for this and found some solution (as in below), But It's not working. Any help would be much…
Viththal Joshi
  • 113
  • 1
  • 3
  • 11
0
votes
3 answers

Redirect tomcat to https using apache server (Windows)

I need to integrate apache server with tomcat first and then redirect http request to https using apache in localhost. Explaination: I have a java web development project running on tomcat server. let the url be http://localhost:8080/myProject I…
Vanellope
  • 55
  • 6
0
votes
1 answer

Double Tomcat behind mod_jk load balancer

I am in the process of setting up two Tomcat instances on the same server with an Apache mod_jk load balancer in front of it. I have been using a guide and the Apache Tomcat documentation and stuck to the basic setup suggested. When i try to start…
Mats Andersson
  • 397
  • 2
  • 7
  • 21
0
votes
0 answers

Two different projects on single server and single domain

Suppose I have a domain www.example.com and the project is hosted in tomcat/linux/apache_server Say www.example.com is fetching the file from /tomcat/apache-tomcat-7.0.63/webapps/proejct_folder Now, what I want to do is www.example.com/cms or…
Aman
  • 806
  • 2
  • 12
  • 38
0
votes
1 answer

Stopping traffic to unhealthy web server instance from loadbalancer

I have 3 web servers (Apache) which are behind vip (Apache, serving as a reverse proxy). We dont want LB to serve traffic if the anyone of web server which has 501 error. How can I do that automatically. PS: I am thinking is to use health checks as…
Lovey
  • 880
  • 3
  • 15
  • 31
0
votes
3 answers

Configuring Apache in front of Jboss as load balancer

I have my web application deployed in JBoss AS 7.1. After writing middleware code in Java, when I started writing user interface. I thought of using Apache httpd for accessing static resources like css, js and html. Hence I installed httpd 2.4.23…
0
votes
1 answer

how to do mod_cluster or mod_jk cluster for jboss eap 6.1

I have two jboss node in same machine with different port and I installed apache server and configured the mod_cluster in apache/conf/httpd.conf as below: Order deny,allow Allow from all
0
votes
1 answer

mod_rewrite: rewrite urls to point to the same application

I have tomcat sitting behind an apache server connected through mod_jk. I now have a need of having 2 urls pointing to the same tomcat application. http://hostname/app/ http://hostname/fancy-url/ Both of these urls need to point to same tomcat…
Nitesh Kumar Anand
  • 621
  • 1
  • 6
  • 18
0
votes
2 answers

Apache Sticky sessions

I have configured a sticky session set up with a load balancer (Apache) and three app nodes running Jboss 4.2.2 . the load balancer uses mod_jk and settings as mentioned in the tutorial…
frictionlesspulley
  • 11,070
  • 14
  • 66
  • 115