Serve static files from nginx for POST request
This is a quick tip, I haven't had the time to dig deep into this. I am working on a Facebook app, and was doing a demo with static HTML. Everything was set, in...

This is a quick tip, I haven’t had the time to dig deep into this. I am working on a Facebook app, and was doing a demo with static HTML. Everything was set, including SSL (I will write quick tip on that too). I could browse to the page separately. But it failed from within Facebook, giving a 405 error.
From previous experience I remembered Facebook does POST requests, but I had forgotten the fix for static files. For some reason nginx does not allow serving static files for HTTP POST request. Anyway the fix was:
error_page 405 = $uri;
Also here is another suggestion: Serving Static Content Via POST From Nginx
Hope this helps you.
Software engineer and entrepreneur, 16+ years at fast-paced startups across the US, Canada, Germany and India.
Hook this up to your favourite commenting platform — Giscus, Disqus, or your own.
Continue reading
Height of Facebook custom Page Tabs
This is a quick tip: I am currently working on a Facebook app. I have a demo for a custom Page Tab. But somehow the height was not setting properly. The canvas...
Google's Les Paul Doodle
Today (June 9, 2011, India) Google's doodle on Les Paul is just a great time killer. Spent the whole morning interacting with it. I got interested to understand...
Buzzwords: Cloud, Mobile, Social
The list of the hottest buzzwords in the industry would certainly include Cloud , Mobile and Social. The impact they each of these have is immense, and when com...