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


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

RewriteRule ^(.)$ - [,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
looking for a way to do it within the webserver before it actually
reaches a

Thank you


This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs