httpd-users mailing list archives

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


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}] 
ProxyPass / http://myrealserver:8080/ 

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 ? 


View raw message