Question: Galaxy + Apache + External Authentication
0
Assaf Gordon • 320 wrote:
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
ADD COMMENT
• link
•
modified 9.8 years ago
by
Nate Coraor ♦ 3.2k
•
written
9.8 years ago by
Assaf Gordon • 320