Welcome! Log In Create A New Profile

Advanced

Re: How to respond correctly to a POST request for a static file?

January 12, 2012 01:44PM
http://invalidlogic.com/2011/04/12/serving-static-content-via-post-from-nginx/




On Thu, 2012-01-12 at 04:06 -0500, johnny wrote:
> hi,
>
> I have a Facebook app hosted on nginx. Faceboook fetches the data by
> issuing a POST request for index.html before embedding it in their
> canvas. My server replies with 404, instead of the expected 405. If it
> was 405, I could fix things by adding "error_page 405 =200 $uri;" to the
> configuration file, but for some reason it's 404.
>
> I can think of two ways of correcting the situation:
> 1. Find a way to have the server respond with 405 and then add the above
> line. This is probably the correct way.
> 2. Respond with 200 when a POST request is issued for index.html.
>
> How do I implement either one of these?
>
> thanks,
> Johnny.
>
> Posted at Nginx Forum: http://forum.nginx.org/read.php?2,221059,221059#msg-221059
>
> _______________________________________________
> nginx mailing list
> nginx@nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx


_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

How to respond correctly to a POST request for a static file?

johnny January 12, 2012 04:06AM

Re: How to respond correctly to a POST request for a static file?

Cliff Wells January 12, 2012 01:44PM

Re: How to respond correctly to a POST request for a static file?

johnny January 12, 2012 05:14PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 303
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready