As my apache still needs to serve some directories without authentication I've decided to setup a virtualhost listening to 8080 which is now proxy galaxy (listening to 8081).
I've tried to follow your instructions but I believe most of the rewritecond and requestheader directive can be skipped. In principle I'm querying LDAP with this:
I've checked this with a cgi script which prints evnironmental variables and I have:
That given, galaxy should simply read the variable, shouldn't it? Unfortunately what happens is that I'm asked to login (by apache) but after that I get the Galaxy error
<VirtualHost *:8080>
# DocumentRoot /data/galaxy_dist/static
RewriteEngine on
RewriteRule ^/static/style/(.*) /data/galaxy_dist/static/june_2007_style/blue/$1 [L]
RewriteRule ^/static/(.*) /data/galaxy_dist/static/$1 [L]
RewriteRule ^/images/(.*) /data/galaxy_dist/static/images/$1 [L]
RewriteRule ^/favicon.ico /data/galaxy_dist/static/favicon.ico [L]
RewriteRule ^/robots.txt /data/galaxy_dist/static/robots.txt [L]
# RewriteCond %{IS_SUBREQ} ^false$
# RewriteCond %{LA-U:REMOTE_USER} (.+)
# RewriteRule . - [E=RU:%1]
# RequestHeader set REMOTE_USER %{RU}e
# RequestHeader unset Authorization
<Location />
# Options +Indexes
# IndexOptions FancyIndexing
# AllowOverride None
AuthType Basic
AuthName Galaxy
Order deny,allow
AuthBasicProvider ldap
AuthLDAPRemoteUserAttribute mail
Require ldap-filter objectClass=posixAccount
</Location>
# Alias / /data/galaxy_dist/static/
ErrorLog /var/log/apache2/galaxy-error.log
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel debug
CustomLog /var/log/apache2/galaxy-access.log combined
ServerSignature On
<Location /root/display_as>
Satisfy Any
Order deny,allow
Deny from all
</Location>
# ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
# <Directory "/usr/lib/cgi-bin">
# AllowOverride None
# Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
# Order allow,deny
# Allow from all
# </Directory>
</VirtualHost>
d