Welcome! Log In Create A New Profile

Advanced

Setting a cookie from the webserver level like apache2 and mod_rewrite can.

David Taveras
September 14, 2009 06:22PM
Hello,

We are evaluating migrating to nginx from apache2 with mod_rewrite.
Currently we have something like this in apache2 .htaccess:

RewriteRule ^(.*)$ - [CO=%1:%2:.ourdomain.com,R=301]
RewriteRule (.*) $1? [R=301,L]

Is there any possible way that nginx with its modules can do something
similar? Yes i do understand that html and php this can be done but we are
looking for a way to do it within the webserver before it actually reaches a
file.

Thank you

David
Subject Author Posted

Setting a cookie from the webserver level like apache2 and mod_rewrite can.

David Taveras September 14, 2009 06:22PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 272
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready