Hi, I'm struggling with getting rewrites to work so that I can hide the ".php" on file extension. I'm running a photo site (called Piwigo) on nginx, and it creates URLs of the form: http://example.com/SOMESCRIPT/param1/param2/param3#whatever In this case, SOMESCRIPT is actually a file on disk called "SOMESCRIPT.php". I'm trying to configure rewrites so that (1) first tryby neek - How to...
Argh, I figured it out. Apparently fcgiwrap is very strict about wanting Content-Type as the first line of the response. I changed around the printfs and got it to work. Thanks for the suggestion, it led me to the answer! :)by neek - How to...
Hi Jim, Thanks for the quick reply. I'm actually using fcgiwrap (launched via spawn-fcgi), though through a port rather than a socket. fcgiwrap launches the script but I just get back a 502 error... Seems something along the way (the script, fcgiwrap, mod_fcgi, or nginx is doing something which causes the 502. I'm seeing something weird in the error log but I don't really know what to try nexby neek - How to...
Hi, does anyone know how to get NGINX (or any CGI gateway) to support NPH (non-parsed header) CGI scripts? I have a system which I'm trying to integrate to my nginx site but nginx only returns 502 ("Bad gateway"). I've been running lighttpd for years and I specifically decided to try to move to nginx because lightty also doesn't support nph, unfortunately. I'm willing to use any CGIby neek - How to...