logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Other Software View previous topic :: View next topic
Reply to topic   Topic: Issues using JkMount inside <location> container
Author
jnsunkersett



Joined: 30 Jan 2011
Posts: 23

PostPosted: Thu 12 Apr '12 7:27    Post subject: Issues using JkMount inside <location> container Reply with quote

Hi,

Mine is j2EE application running in Jboss app server.

I am fronting jboss with Apache HTTP, using mod_jk + ajp-13.

So, https://mydomain.com/ ... by default is port 443,
request is routed to jboss running on port 8080 (ajp on 8009) or as defined in worker.properties.

I wish to have multiple environments; for multiple parallel releases

So in Apache httpd-ssl.conf


Code:
<VirtualHost __default__:443>

# all required SSL configuration goes here
# +
# I defined a <location> element
 
  <Location /releaseG1*>
    JkMount g1node
    # the worker node defined here must have type=ajp13, it should not be type=lb
  </Location>
 
  <Location /releaseABC*>
    JkMount workerNodeABC
  </Location>
 
</VirtualHost>



But with that in place, when from client browser
I browsed to https://mydomain.com/releaseG1 it did not work; http error 503

Apache sslerror.logs, show an error;

Quote:
[Thu Apr 12 09:57:46 2012] [error] (OS 10061)No connection could be made because the target machine actively refused it. : proxy: HTTPS: attempt to connect to 10.224.78.243:443 (ltib763) failed
[Thu Apr 12 09:57:46 2012] [error] ap_proxy_connect_backend disabling worker for (ltib763)


What am I missing?

What else could I try?
I have one registered domain, https://mydomain.com; and served by a Apache HTTPD 2.2.17 server.
I want to have multiple apps, deployed in independant jboss app servers; but accesible under the same primary domain
like;
https://mydomain.com/releaseG1 to get routed to jboss app server on my machineG1
https://mydomain.com/releaseABC to get routed to jboss app server on my machineABC, etc

thank you
~g1

PS: My worker.properties are

# Define g1node
## modify the host as your host IP or DNS name.
worker.g1node.port=8009
worker.g1node.host= LTIB763.cts.com
worker.g1node.type=ajp13
worker.g1node.lbfactor=1
worker.g1node.prepost_timeout=10000 #Not required if using ping_mode=A
worker.g1node.connect_timeout=10000 #Not required if using ping_mode=A
worker.g1node.ping_mode=A #As of mod_jk 1.2.27
# worker.node1.connection_pool_size=10 (1)
Back to top
Qmpeltaty



Joined: 06 Feb 2008
Posts: 182
Location: Poland

PostPosted: Fri 15 Jun '12 15:04    Post subject: Reply with quote

Change your config to :

Code:


<VirtualHost __default__:443>
 
    JkMount /releaseG1* g1node
    JkMount /releaseABC* workerNodeABC
 
</VirtualHost>

Back to top


Reply to topic   Topic: Issues using JkMount inside <location> container View previous topic :: View next topic
Post new topic   Forum Index -> Other Software