title: How can I set up an automatic authentication layer in nginx?
body: <p>I'm building an ecosystem of applications under a common domain, with each application under a separate subdomain.  I have built an authentication application for the ecosystem, but it requires each other application to be specially configured to use it.  Is there a way to configure nginx to manage user sessions, possibly forwarding user information as headers to the various applications?</p>