Deploying with NGinX
Posted: 16 months ago (2009-04-21 05:17:01 UTC )
I found Ezra Zygmuntowicz's article and sample NGinX config, and I've been trying to get it all up and running since.
I've used God extensively to run this blog, all the mongrel processes for my project, and NGinX to front for the project mongrels. Sorry, nonexistent blog readers -- you just get one mongrel process, collectively. It's still watched over by God, which is better than many sites.
I have to say, God was really easy to set up. So far NGinX mostly has been too, contrary to its reputation.
But now I'm finding a problem: OpenID. My site uses OpenID logins, and my NGinX config does this cute proxying thing when forwarding a request to mongrel. It replaces the initial URL with "http://mongrel", which of course completely screws up OpenID's ability to figure out where it's coming from, and what URL the other site should go back to.
Now I wish I knew why the NGinX config did that...
Changing the "mongrel" upstream name and proxy_pass doesn't seem to help, though. I renamed it "www.myurl.com" (but with my real URL), and no dice. Alas. So maybe NGinX is going to suck for me to try and use.
I'm sure there's some way for me to make this work. I just don't know what it is.
