Hi,

I am trying desperately to setup my GALAXY system so that if you enter the website, you need to authenticate yourself using the proxy setup...
I also would like to be able to BYPASS the proxy server when an API call is made...

In the example proxy setting I have setup in the following way:

ReWriteRule ^(/api/histories/.*) http://localhost:8080$1 [P,L]
ReWriteRule ^(/api/.*) http://localhost:8081$1 [P,L]
RewriteRule ^(.*) http://localhost:8080$1 [P]

I then setup a <PROXY setting in the apache galaxy.d in /etc/httpd/conf.d/galaxy.d to require authentication when a user is re-directed to the localhost:8080 and allow the calls to localhost:8081 to pass unhindered...

This works brilliantly EXCEPT for when you want to make an API call that involves some histories....
The call fails, since /api/histories calls are routed through the proxy server and require authentication, which I want to avoid...

It seems that histories are "special" so they have their own line in the configuration file above...

I tried to change 
ReWriteRule ^(/api/histories/.*) http://localhost:8080$1 [P,L]

to 

ReWriteRule ^(/api/histories/.*) http://localhost:8081$1 [L]

Which DOES work, but it also breaks the automatic update of the history in the webbrowser...
I have to reload the page manually to update the history...

Is there anyway I can get the automatic update to work again, but don't require autentication?

Thanks

Thon