httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject [users@httpd] ssl environment mod_rewrite
Date Mon, 15 Aug 2005 11:38:25 GMT
hi i want to bypass a cgi script via possibly mod_rewrite.

basically i want to forward a ssl client cettificate to a reversed 
proxied backend, and
this is possible via a cgi script.

but it would be nice if one could do the same for instance via 
mod_rewrite envirionment
variable or appended to a proxied query string

im was surprised to find that not all environment variables are 
available in mod_rewrite
(is that correct ?)

but even if i can get to the %{SSL_SERVER_CERT}} i need to escape the 
newlines in the
value because neither a URL og header value can contain such a character

i have tried things like:

(which will end up with an invalid header because of newlines)


RewriteMap    escapeMe    int:escape
RewriteRule ^/.* http://localhost:8080/$1 \


RewriteMap    escapeMe    int:escape
RewriteRule ^/.* \ 
http://localhost:8080/$1?FORWARD_CERT=${escapeMe:%{SSL_CLIENT_CERT}} \

neither works.
anyone have aany idea to do this without a cgi, if possible at all ?

Delete | Reply | Reply to All | Forward | Redirect | View Thread | 
Blacklist | Whitelist | Message Source | Save as | Print | Report as 
	Move | Copy 	Back to sent-mail   >

The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message