Questions tagged [mod-jk]
The mod-jk tag has no usage guidance.
174
questions
1
vote
1
answer
810
views
Apache & Tomcat & mod_jk SSL redirection on certain pages only
We have a single Windows server running Apache and Tomcat with mod_jk enabled. The Tomcat app runs perfectly fine as does the separate PHP app (under Apache). We installed a commercial SSL cert ...
0
votes
1
answer
353
views
Can I compile Passenger (mod_rails/mod_rack) to make a statically linked Apache httpd?
I prefer to disable httpd dynamic module loading on my production server.
I've been using mod_jk linked statically into httpd for quite a long time and it proved to be stable.
Now I would like to ...
1
vote
2
answers
286
views
apache and jboss load balancing setup
In a normal load balancing setup with apache(mod_jk) and jboss what part of the total processing is done by apache and what part of it is done by jboss. If apache only balances the load then, in ...
0
votes
1
answer
2k
views
apache custom-log format with regex expression
We have apache webserver as "entry" for incoming traffic it then delegates to tomcats with mod_jk.
We want to log the HTTP digest username, sample header:
Authorization: Digest username="Mufasa",
...
1
vote
1
answer
2k
views
URL Rewrite and mod_jk
I want to redefine the base URL of a Tomcat webservice, mounted with JkMount. I tried the following:
JkMount /myapp/* ajp13_worker
RewriteRule ^/service/v1/(.*)$ /myapp/$1 [PT,QSA]
The original URLs ...
0
votes
1
answer
271
views
mod_jk between apache and tomcat: making sure 8080 requests still go to tomcat
This question follows a mod_jk configuration question asked earlier. I have managed to to have http://mywebsite.com/MyTomcatApp/ go to Tomcat while having http://mywebsite.com/ go to Apache.
However, ...
1
vote
1
answer
647
views
mod_jk configuration for both Apache and Tomcat on same server
I am trying to set-up a proper configuration to have Apache serve some static html pages and to pass other requests for dynamic pages to Tomcat. So far, I have installed Apache2 and Tomcat6 ...
0
votes
3
answers
3k
views
Mapping mod_jk to application with different name from alias
We have an internet app called X which is being replaced by a new app called Y.
We use Tomcat instances fronted by Apache to serve X and Y, with communications through mod_jk. There is one Tomcat ...
2
votes
1
answer
2k
views
Glassfish behind Apache reverse proxy: Mod-jk or HTTP?
I am planning a large deployment of a Glassfish-powered web application:
A number of nodes running multiple Glassfish 3.1.1 instances are running the web application.
The web application consists of ...
0
votes
1
answer
864
views
Deploying war with custom context in Tomcat
I have a Tomcat server fronted by Apache with comms using AJP. The configuration uses JkMount for mapping URLs on Apache to the Tomcat node.
I am helping in the deployment of an application which is ...
0
votes
1
answer
1k
views
Virtual Hosts with Tomcat + Mod JK
I have set up Apache and Tomcat on my system and I want to combine both using Mod_JK.
I have created a mod_jk worker (ajp13_worker) and added a virtual host to my Apache config:
<VirtualHost *:80&...
3
votes
2
answers
11k
views
Farm Deployer not working in Tomcat Cluster
I have setup apache-tomcat clustering(Ubuntu Server) and I used tomcat supported clustering technique with mod_jk following the link. I've setup with One Load Balancer and Two web servers.
The major ...
1
vote
1
answer
2k
views
Tomcat web application high availability
I have setup apache-tomcat clustering(Ubuntu Servers) and I used tomcat supported clustering technique with mod_jk following the link which is clear and easy to follow.
I did this in my LAN with ...
0
votes
2
answers
540
views
Is this weird Apache access log a security risk?
Below is a copy of a weird access log I found in my Apache logs folder:
127.0.0.1 - - [24/Oct/2010:13:49:45 +0200] "GET /x64 HTTP/1.1" 301 229
127.0.0.1 - - [24/Oct/2010:13:49:48 +0200] "GET /x64/ ...
1
vote
1
answer
557
views
multiple loadbalancers in modjk configuration in Apache Webserver for JBoss Instance Load-balancing
In most of the cases, we will have
1)only one worker defined of type 'lb' (Loadbalancer)
2)we will have multiple member workers (target application server instances defined)
3)We will map those target ...
1
vote
2
answers
336
views
Is there any reason to use Apache as a proxy between my users and Glassfish?
I've seen a lot of discussion on the best way to use Apache as a proxy (either mod_proxy or mod_jk) with Glassfish (and other Java application servers), but I haven't seen anybody really explain why.
...
0
votes
2
answers
101
views
partial shutdown of loadbalanced app
I have a pair of tomcat servers sitting behind an apache server running modjk2. the apache server load balances sessions to the tomcat servers (using x.sticky_session=True). This all works fine, ...
1
vote
0
answers
429
views
mod_jk with Tomcat 6 and HTTP Authentication
Are there any gotchas using ModJK to forward to an application protected by standard HTTP Authentication?
We have two web apps installed on our Tomcat 6.0.14, one is the standard Tomcat Manager while ...
0
votes
1
answer
2k
views
mod_jk to forward to tomcat installed on other server?
Is it possible to forward the request from IBM HTTP server installed on solaris machine to Tomcat installed on windows machine using mod_jk?
IHS is installed on solaris and I have attached mod_jk ...
0
votes
1
answer
5k
views
apache mod_jk loadbalancing issue for glassfish cluster instances
I have a JEE ear application deployed on 2 clusters with 2 instances each on Glassfish v3.1. These are load balanced by an Apache server running on the same machine. My problem is that I am frequently ...
2
votes
1
answer
520
views
JBoss 5.1.0 GA with Apache Load Balancer
I've followed the tutorial here: http://community.jboss.org/wiki/UsingModjk12WithJBoss
All my files as configured as it says there but then I try to access http://localhost/jmx-console I get
Proxy ...
1
vote
1
answer
2k
views
Large concurrent user performance issues for Apache + mod_jk + GlassFish v3.1 clusters
I am running a java ee 6 ear application on a GlassFish v3.1 ( 2 clusters with 2 instances each) load balanced by an Apache v2.2 with mod_jk - all on the same server (Windows Server 2003 R2, Intel ...
0
votes
1
answer
451
views
Spring Security, Apache 2 fronting Tomcat6. Can't login / immediatly logs out
I deployed my GWT app, that uses SpringSecurity, and have a problem.
After feeding the credentials it logs out immediately. If I put in the wrong credentials, it says 'wrong credentials', but when I ...
0
votes
1
answer
853
views
Ubuntu apache-tomcat webserver clustering/load balancing
I have a Ubuntu production server running apache2 and tomcat6 both on port 80 with mod_jk setup hosting some jsp pages. And also, all the client's informations are stored in the mysql databases on the ...
0
votes
1
answer
1k
views
How to make mod_jk authenticate SSL connections
I have a 3 Tomcat application servers with 3 Apache servers in front. Communication between Apache and Tomcats is done via mod_jk. I need to have secure connections between the Tomcat and Apache ...
1
vote
2
answers
830
views
apache 2 + passenger + redmine mapping question
I have these two sites defined in my apache2 server.
Redmine server
#REDMINE SITE (/etc/apache2/sites-available/redmine)
<VirtualHost *:8080>
# this is the passenger config
...
0
votes
1
answer
154
views
Divide webapps between tomcat instances
I have 300 webapps in a single Tomcat. It takes a while to restart Tomcat plus a few other limitations. I have Two web servers load balanced in current Apache + Mod_JK + Tomcat setup.
These servers ...
1
vote
1
answer
804
views
Apache mod_jk serves JSP through HTTP but fails to server JSP via HTTPS protocol?
I am running a application on JBoss4.0.3(using Tomcat AJP on ports 8009 and 8443) and I just setup a Apache HTTPS server that is listening on both port 443 and port 80. Everything works fine via ...
0
votes
1
answer
940
views
Confusion in installing mod_jk on Ubuntu
I am working from this document in trying to install mod_jk
http://www.howtoforge.com/apache2_tomcat5_mod_jk_p2
I am at the step towards the bottom where they suggest to use the make command. I was ...
0
votes
1
answer
4k
views
Apache 2.2.17 + Tomcat 7 on Windows Server?
What's the most painless way for a newbie to get Tomcat 7 and Apache 2.2.17 running together on Windows Server 2008 R2? I want Apache to handle all the static content and for Tomcat to handle the ...
0
votes
3
answers
4k
views
SSL redirect problem with JBoss 4.2.3, Apache mod_jk and a hardware load balancer
We are currently experiencing some problems with a network setup we have not used so far and I hope to get some more input how to work around this.
The network of a customer of us uses 4 JBoss ...
0
votes
1
answer
2k
views
Rewriting URL for tomcat through an apache AJP connector
I've tried several attempts to resolve this, but all have come up naught.
Currently I have apache setup to forward all urls at and past the /portal/ tag to tomcat. Unfortunately, tomcat receives ...
1
vote
1
answer
1k
views
Apache mod_jk replacing mod_rewrite rules
We have a slightly complex Apache 2.2 setup in front of a Tomcat 6.0 instance. The main Tomcat webapp is deployed in:
/opt/tomcat/webapps/ROOT
But we also have static content that we update semi-...
0
votes
2
answers
634
views
Remote servlet by mod_jk?
I have remote servlet for example: htps://[ip_address]/servlet (htps://[ip_address]/ - Tomcat main page) that i need to configure on local Apache HTTPd server. My mod_jk configuration looks like below,...
0
votes
1
answer
666
views
One SSL certificate (one domain) for two servers?
I have two servers. On SERVER1 i have configured SSL certificate (on Apache) for domain htps://somedomain.com. I need to connect to my working domain some app that exists on remote server SERVER2 - ...
2
votes
1
answer
2k
views
hosting 2 webapps under 1 apache/tomcat
I am trying to host multiple webapps under tomcat 6 behind apache2 via mod_jk.
I am at my wits end with this. the problem i am facing that both domains seems to point to a single tomcat 'domain'.
my ...
0
votes
2
answers
1k
views
Apache+mod_jk and a specific 404 handler
I have a relatively simple Apache httpd + Tomcat via mod_jk setup that works well, but I need to have Tomcat handle certain 404 conditions. Basically, the httpd service will handle images and PDF ...
5
votes
3
answers
11k
views
Connecting tomcat6 to apache2
Disclaimier: Not a server admin
I've been scratching my head over this for weeks now (not consistently mind you, as that would be maddening). I've been trying to connect my apache2 server to my ...
0
votes
1
answer
1k
views
What configuration changes needed on tcServer to work with Apache Web server
I have Apache Webserver 2.2.17 and tcServer-6.0.20 and I want to dispatch requests from apache to tcserver.
I am using mod_jk.so and I have the following in httpd.conf
LoadModule jk_module modules/...
0
votes
1
answer
2k
views
trouble running multiple domains on tomcat behind apache via mod_jk
I am having trouble setting up tomcat6 with 2 virtual hosts, behind apache2.
if i have just one host defined in tomcat, and one jk worker, everything works fine. as soon as i define another jk worker ...
0
votes
3
answers
2k
views
How to get html/css/jpg pages server by both apache & tomcat with mod_jk
I've apache2 and tomcat6 both running on port 80 with mod_jk setup on ubutnu servers. I had to setup an error document 503 ErrorDocument 503 /maintenance.html in the apache configuration and somehow I ...
1
vote
1
answer
1k
views
How to map a web application to the root of a virtualhost?
I wrote a MVC Servlet + JSP web application and deployed in Apache+Tomcat. I don't call JSP directly, but I use them as view and I call them from the Servlets.
To make it visible in a virtual host, I ...
1
vote
1
answer
1k
views
Virtualhost Apache and Tomcat
I have Tomcat and Apache web server. by MOD_JK I configure Apache to send request for http://127.0.0.1/cas to Tomcat.
http://127.0.0.1/cas works correctly and Tomcat response to it.
now I want this ...
0
votes
1
answer
236
views
Mapping tomcat apache worker
I am running an Apache2 server connected with Tomcat5.5
Workers.properties
workers.tomcat_home=/usr/share/tomcat5.5
workers.java_home=/usr/lib/jvm/java-6-sun
ps=/
worker.list=worker1
worker.worker1....
1
vote
1
answer
2k
views
Apache HTTPD - Segmentation fault when loading mod_jk module
I just set up mod_jk with my Apache httpd 2.0.52 installation, but now when I try to start Apache, it has a segmentation fault. I've checked that I am using the mod_jk compiled for 2.0.x.. built ...
0
votes
1
answer
1k
views
How to use Apache to redirect to IIS on a different port?
I have Apache configured with jk_mod to redirect to several instances of tomcat. Apache is listening on port 80, and depending on the URL it receives it will redirect to a different tomcat instance (...
2
votes
1
answer
2k
views
Apache sends 400 instead of 404
I've got an odd problem. Apache is replying with a 400 error code instead of 404 when ever a client requests a non existing jsp page (html request are answered correctly with a 404).
The only time ...
0
votes
1
answer
441
views
mod_jk/isapi_redirect not loading settings
I'm setting up the IIS version of mod_jk so I can redirect requests to a Tomcat instance. Running IIS 6 on Win2k3 server on a Xeon 64-bit CPU. I'm running the AMD64 version of isapi_redirect.dll.
...
1
vote
3
answers
3k
views
Answering all requests with a maintenance page without restarting Apache HTTP server
let say we have the following picture:
A Apache HTTP server is serving the users' requests. It forwards all (or a part of) requests to a Tomcat server using mod_jk.
Let's say we want to shutdown our ...
3
votes
1
answer
2k
views
PHP and JSP running on same machine.. Tomcat on Apache
Sorry if this has been posted/answered already, but I cannot find the simple answer.
I have two applications one JSP and one PHP both hosted on same machine running apache and tomcat. Apache is ...