Does nginx pay any attention to http headers returned from a CGI program/script? Specifically, I'd like the CGI to be able to generate appropriate http response headers, but it seems to me that nginx ignores these and just sends a 200 OK response when it actually finds the CGI file. I was hoping I could create a 301/2 redirect header to be sent back to the original requestor, however that insteby UKenGB - How to...
Thanks for confirming that. I thought it might be the case.by UKenGB - How to...
I need to rewrite/redirect a number of simple URLs to more complex ones and those destination URLs are stored in files and can be accessed by any (e.g. bash) script. Indeed I use a CGI script that accesses and uses those URLs for audio streaming. Although I could enter these URLs into nginx's rewrite rules to accomplish what I need, I don't want to have to duplicate them as that just complicates tby UKenGB - How to...
Using nginx on an OpenMediaVault (debian) server and trying to set up a Location with regex match and wanted to match 3 actual characters. I should (certainly in PCRE) have been able to use:- \w{3} However with this I was unable to restart nginx. \w\w\w was OK, as was ... and even ..+, but any use of {} as a fixed number of occurrences, or range etc and nginx refused to start. Is there soby UKenGB - How to...