Nate,
thanks for the piece of code. It worked perfectly on my test server. However, when I tried to put it the production serve, whose apache makes use of VirtualServers in contrast to my test server, it didn't work :-( I am able to authenticate using my ldap login/password but then the web site shows just a blank page... there is no message in paster.log; however, the apache log says:
[Tue Jul 07 09:35:29 2009] [error] PHP Warning: include(/apache/prod/html/php/menuLoader.php) [<a href='function.include'>function.include</a>]: failed to open stream: No such file or directory in /apache/prod/html/ApacheErr/error401.html on line 2
[Tue Jul 07 09:35:29 2009] [error] PHP Warning: include() [<a href='function.include'>function.include</a>]: Failed opening '/apache/prod/html/php/menuLoader.php' for inclusion (include_path='.:/usr/share/pear:/usr/share/php') in /apache/prod/html/ApacheErr/error401.html on line 2
[Tue Jul 07 09:35:29 2009] [error] File does not exist: /apache/prod/html/galaxy
[Tue Jul 07 09:35:29 2009] [error] PHP Warning: require_once(Menu.inc) [<a href='function.require-once'>function.require-once</a>]: failed to open stream: No such file or directory in /apache/prod/html/ApacheErr/error404.html on line 2
[Tue Jul 07 09:35:29 2009] [error] PHP Fatal error: require_once() [<a href='function.require'>function.require</a>]: Failed opening required 'Menu.inc' (include_path='.:/usr/share/pear:/usr/share/php') in /apache/prod/html/ApacheErr/error404.html on line 2
[Tue Jul 07 09:35:29 2009] [error] File does not exist: /apache/prod/html/favicon.ico, referer: http://intranet/galaxy/
[Tue Jul 07 09:35:29 2009] [error] PHP Warning: require_once(Menu.inc) [<a href='function.require-once'>function.require-once</a>]: failed to open stream: No such file or directory in /apache/prod/html/ApacheErr/error404.html on line 2, referer: http://intranet/galaxy/
[Tue Jul 07 09:35:29 2009] [error] PHP Fatal error: require_once() [<a href='function.require'>function.require</a>]: Failed opening required 'Menu.inc' (include_path='.:/usr/share/pear:/usr/share/php') in /apache/prod/html/ApacheErr/error404.html on line 2, referer: http://intranet/galaxy/
Do you know what could be the problem?
thanks,
Erick
Erick Antezana wrote:Not at all. Here's a sample configuration:
Nate,
in the URL you just sent, are the "Apache configuration with Galaxy not at the web server root" and "External authentication and $REMOTE_USER" mutually exclusive?
cheers,
Erick
<Location /galaxy>
AuthType Basic
AuthName Galaxy
AuthUserFile /htpasswd
Require valid-user
</Location>
# Required to pass REMOTE_USER
<Proxy http://127.0.0.1:8080>
Order deny,allow
Allow from all
</Proxy>
RewriteEngine on
RewriteCond %{IS_SUBREQ} ^false$
RewriteCond %{LA-U:REMOTE_USER} (.+)
RewriteRule . - [E=RU:%1]
RequestHeader set REMOTE_USER %{RU}e
RewriteRule ^/galaxy$ /galaxy/ [R]
RewriteRule ^/galaxy(.*) http://127.0.0.1:8080$1 [P]
--nate