httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gareth Bult <gar...@encryptec.net>
Subject [users@httpd] Using variables with CO= in mod_rewrite ...
Date Wed, 13 Aug 2008 00:30:32 GMT

Hi, 

I'd like to be able to use a variable in a cookie setting for example; 

<VirtualHost *:80> 
ServerName myserver 
RewriteEngine On 
SetEnv MYPATH "Hello_World" 
RewriteRule . - [CO=COOKIEID:%{MYPATH}:.domain.com:120] 
ProxyPass / http://myrealserver:8080/ 
</VirtualHost> 

But for some reason environment variables don't seem to work. 

Essentially I'd like to insert the domain name component of the request into a cookie .. does
anyone know how this can be done ? 

tia 
Gareth. 


Mime
View raw message