Hi Nate,

I do not see anything in the manager.log that seems as a HTTP request.
All Galaxy processes are set to listen from localhost. 
When I change this to 0.0.0.0 I can access manager process by requesting http directly to its listening port.

To me it seems that this RewriteRule is somehow being skipped.

Hmm...

Update: I have found the solution. 

The [P] in RewriteRule makes the rule to push it to Proxy if it matches, and stops parsing any rules after the rule that have matched.

So if you write:

# Job Manager
RewriteRule ^/admin/jobs(.*) http://localhost:8079/admin/jobs$1 [P]

# Balancer
RewriteRule ^(.*) balancer://galaxy$1 [P]

instead of:

# Balancer
RewriteRule ^(.*) balancer://galaxy$1 [P]

# Job Manager
RewriteRule ^/admin/jobs(.*) http://localhost:8079/admin/jobs$1 [P]

It works, because for every request RewriteRule ^(.*) balancer://galaxy$1 [P] has a valid match but RewriteRule ^/admin/jobs(.*) http://localhost:8079/admin/jobs$1 [P] has a match only on /admin/jobs.

So you have to also point this in http://wiki.g2.bx.psu.edu/Admin/Config/Performance/Web%20Application%20Scaling.

Regards,
Christos Kannas

On Wed, Oct 24, 2012 at 5:33 PM, Nate Coraor <nate@bx.psu.edu> wrote:
On Oct 20, 2012, at 10:36 AM, Christos Kannas wrote:

> Hi all,
>
> We have a locally installed Galaxy server that runs only a set of tools we are developing.
>
> It has been setup to run with 3 Web processes , 1 Job Manager and 4 Job Handlers.
> This setup is beeing run behind an Apache web server and we created a config file similar to the one found @ http://wiki.g2.bx.psu.edu/Admin/Config/Performance/Web%20Application%20Scaling.
>
> The problem we have is that Job Manager is not accessible, and we get error messages like the one below:
> This Galaxy instance (web1) is not the job manager (manager). If using multiple servers, please directly access the job manager instance to manage jobs.
>
> We do have the following RewriteRule:
> RewriteRule ^/admin/jobs(.*) http://localhost:8079/admin/jobs$1 [P]
> but it doesn't seem to work.
>
> Can you help me fix it?

Hi Christos,

Does the manager application actually see requests sent to this URL (in its logs)?

--nate

>
> Regards,
> --
> Christos Kannas
> Researcher
> Ph.D Student
>
> e-Health Laboratory
> kannas.christos@ucy.ac.cy
> kannas.christos@cs.ucy.ac.cy
> chriskannas@gmail.com
>
> Mob: (+357) 99530608
>
>
> ___________________________________________________________
> Please keep all replies on the list by using "reply all"
> in your mail client.  To manage your subscriptions to this
> and other Galaxy lists, please use the interface at:
>
>  http://lists.bx.psu.edu/




--

Christos Kannas
Researcher
Ph.D Student 

e-Health Laboratory
kannas.christos@ucy.ac.cy
kannas.christos@cs.ucy.ac.cy
chriskannas@gmail.com 

Mob: (+357) 99530608