Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

So let's say I have a site at

I would like to setup another site at else.

Can Ngnix be configured so these sites are not connected in anyway? Meaning, a session variable started on /somewhere can't be seen on

share|improve this question
up vote 0 down vote accepted

Although I presume it's valid to ask how nginx can help here, this matter is ultimately influenced by the web-browser, too, and is outside of nginx' domain.

There is no way to prevent an app at from setting cookies for Sure, you could potentially block certain Set-Cookie directives through nginx or another web-server, but the app could still use JavaScript for setting such cookies.

Using distinct domain names is the only way to achieve separation between the two apps. See

share|improve this answer
Thannks for the info! – dpluscc Mar 21 '13 at 2:48

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.