Using variables with CO= in mod_rewrite ...

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.


[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux