Hi and thanks for help ;-),
On Die 28.03.2006 10:52, Joshua Slive wrote:
You were going in the right direction: you need to use mod_rewrite. I
thought that you explained that it worked when placed outside the
<VirtualHost> but not inside. If so, you just leave it outside, but
set the inherit option as described above.
I have know testet it with:
RewriteEngine on
RewriteOptions inherit
RewriteCond %{LA-U:REMOTE_USER} =""
RewriteCond %{QUERY_STRING} .*auth=require.*
RewriteRule ^.+$ - [L,F]
in VirtualHost-Contex but i loose the user after the
[INTERNAL REDIRECT].
---
[test.server/sid#82733f8][rid#840b4e8/initial] (5) lookahead: \
path=/apps/test var=REMOTE_USER -> val=al
[test.server/sid#82733f8][rid#840b4e8/initial] (4) RewriteCond: \
input='al' pattern='=""' => not-matched
[test.server/sid#82733f8][rid#840b4e8/initial] (1) pass through \
/apps/test
[test.server/sid#82733f8][rid#840b4e8/initial] (3) [per-dir
/usr/local/apache/htdocs/] add path info postfix: \
/usr/local/apache/htdocs/apps -> /usr/local/apache/htdocs/apps/test
[test.server/sid#82733f8][rid#840b4e8/initial] (2) [per-dir \
/usr/local/apache/htdocs/] rewrite apps/test -> /apps/test.jsp?auth=require
[test.server/sid#82733f8][rid#840b4e8/initial] (1) [per-dir \
/usr/local/apache/htdocs/] internal redirect with /apps/test.jsp \
[INTERNAL REDIRECT]
[test.server/sid#82733f8][rid#8410950/initial/redir#1] (2) init rewrite \
engine with requested uri /apps/test/sportal.jsp
....
[test.server/sid#82733f8][rid#8412a50/subreq] (1) pass through \
/apps/test.jsp
[test.server/sid#82733f8][rid#8410950/initial/redir#1] (5) lookahead: \
path=/apps/test.jsp var=REMOTE_USER -> val=
---
And you should remove the <Limit GET POST> and </Limit> lines, which
are unnecessary and quite possibly a security risk. See the docs for
<Limit>.
Ok, thanx.
Regards.
Alex
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
" from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]