Replacing apache with nginx

Stephen Nelson-Smith sanelson at gmail.com
Tue Sep 30 23:16:22 MSD 2008


Hi Mike,

>> 2) Sessions need to be sticky - so the user goes to the same server
>> all the time, after the session is started.
>
> i'm always curious why people require sticky sessions. with
> database-backed or some other central storage (hell even files over
> NFS) i don't see the need for this at all. i've never used session
> affinity and i've never had a single issue...

In my case, because of the way the app is written.  If it detects a
different session cookie, it logs the user out.

S.

> server {
>   listen 80;
>   server_name foo.com;
>   rewrite ^(.*) https://foo.com/$1 last;
> }

In apache I do:

RewriteCond %{REQUEST_URI} !^/xml

Can I do something similar here?

S.





More information about the nginx mailing list