Why is Nginx POST not working with my internal content?

EDIT: I just found out that the GET methods really work, but the POST methods, however, do not work! It can be significant.

So, I'm on Debian Etch, running Nginx. Nginx usually does not serve cgi / pl files, so I followed the instructions for my backend.

http://technotes.1000lines.net/?p=23

My backend works fine on Apache, but I had to install a module that works with nginx (lib-www).

Now it works, but for some reason the POST / GET methods do not work ... To give an example, my backend is configured to receive the SKU of the product in the URL, and it just adds it to the basket when you do this. Now, if I were to directly enter this url with this added value, it works fine, adds it to the cart, everything works beautifully ....

However, when I add the product to the cart, all of my product pages are configured to be sent to my server. It sends the same value that I could enter into my browser window, except that it does not work (as opposed to just entering it into your url bar, which works).

Now I think that the perl shell code I'm using is a little wrong or something else? He is here:

http://technotes.1000lines.net/fastcgi-wrapper.pl

I made only a couple of changes ... I just created the folder in which he wants to install the socket (but maybe it should be in a different folder), and in my nginx conf I basically have it for example:

location ~ ^/cgi-bin/.*\.pl$ { gzip off; fastcgi_pass unix:/var/run/nginx/perl_cgi-dispatch.sock; fastcgi_param SCRIPT_FILENAME /www/blah.com$fastcgi_script_name; include fastcgi_params; } 

My options are the same as in the article, and I only have the default mime type setting. Any ideas on why this is not working? I would also like to provide any additional information that you need.

+4
source share
1 answer

This particular fastcgi-wrapper.pl script was modified by Denis Sergeyevich Filimonov to correctly handle POSTS requests. You can learn more about this: http://www.ruby-forum.com/topic/145858

+1
source

All Articles