Re: Worker inside ProxyPass

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Phil,

Thank you very much for your help. My problem is that one Tomcat runs out of resources and then HTTPD also stop forwarding requests to other Tomcats. I'm using only ProxyPass, without JkMount:

ProxyPass /Context1 ajp://localhost:8008/Context1
ProxyPass 
/Context2 ajp://localhost:8009/Context2

This is why I would like to try to add JkMount directive, so HTTPD will use workers and if one worker stops others will continue working. Does this make any sense? How can I do this?

Kind regards,
Milan





----- Original Message ----
From: Philip Wigg <phil@xxxxxxxxxxxxxxxx>
To: users@xxxxxxxxxxxxxxxx
Sent: Thu, March 11, 2010 1:02:49 PM
Subject: Re:  Worker inside ProxyPass

On 11 March 2010 11:28, Milan Tomic <tomicmilan@xxxxxxxxx> wrote:
>
> I have in my htpd.conf:
>
> <VirtualHost *:80>
> ProxyPass /Context1 ajp://localhost:8008/Context1
> ProxyPass /Context2 ajp://localhost:8008/Context2
> </VirtualHost>
>
> if I say:
>
> JkMount /Context1 worker1
> JkMount /Context2 worker2
>
> Is this OK? This means /Context1 will be served my worker1 and /Context2 will be served my worker2? I can use JkMount together with ProxyPass as above?

You seem to be trying to use mod_jk and mod_proxy simultaneously to do
the same thing.

The JkMount directive  is for use with mod_jk, and the ProxyPass
configuration is for mod_proxy. Both are modules which can use the AJP
protocol to talk to a back-end application server, but you need to
choose which you're going to use.

There's lots of documentation about both options:-

http://httpd.apache.org/docs/2.2/mod/mod_proxy.html
http://tomcat.apache.org/connectors-doc/
http://community.jboss.org/wiki/UsingModproxyWithJBoss

Your ProxyPass configuration by itself looks okay to me, does it not
achieve what you're looking for?

-- Phil

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx


      

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx


[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux