Hello,
I'm trying to setup galaxy to run with apache and external
authentication - and I can't get this to work.
(This is a not a galaxy question per se, more of an apache question, but
hopefully you can still help me).
First step was to setup apache/galaxy with mode rewrite - works
perfectly. I've added these two lines to a 'conf' file in /etc/httpd/conf.d:
ReWriteRule ^/galaxy$ /galaxy/ [R]
RewriteRule ^/galaxy(.*)
http://localhost:8080$1 [P]
Browsing to
http://myserver/galaxy indeed goes to galaxy and works ok.
Then, I've tested a simple authentication directive (independent of galaxy):
Alias /galaxy "/home/gordon/galaxy"
<Directory /home/gordon/galaxy>
AuthType Basic
AuthName "Restricted Files"
AuthUserFile /home/gordon/httpd_passwords
Require user gordon
</Directory>
And this also works OK.
Now I want to combine the two - but it doesn't work.
My "ReWriteRule" are ignored when they are inside a <Directory> clause.
I've also tried <Location> - same results.
Any ideas ?
Thanks,
Gordon