mod rewrite - mod_rewrite and server environment variables -
the setup have follows:
i have 1 apache server acting url rewriting engine (server1).
i have second server (apache too) runs web application (server2). first tries authenticate users. part of authentication protocol involves lot of redirection between application server , authentication server.
my problem once authencation successfull, authentication server needs redirect user application server, visible server1. effectively, server2 needs able reconstruct url based on server1's parameters.
most of environement variable helpful i.e. know host name, script name, page called etcc can 't figure out wether call made through http or https: information wiped in rewrite process server1...
anybody knows if/how can information through environement variables? limited in can't use query string parameters...
thanks !
this may sound strange, have found part of answer question.
the rewrite engine (at least in apache 2, haven't looked anywhere else) allows writting request header.
the rule should that.
rewriterule .* - [e=info_path_info:%{path_info},ne]
put simple, creates new header called info_path_info , sets value path_info. ( more info check out http://www.askapache.com/htaccess/crazy-advanced-mod_rewrite-tutorial.html )
then can retrieved in languages. info using oracle's owa adds layer of complication due fact default environment variables limited few , additional variables need specified in thr dads.conf
hope !
Comments
Post a Comment