I encountered the same issue on fedora core 9by davidc - Nginx Mailing List - English
This isn't specifically an nginx question but as the forum is served via nginx it could be. When I search the forum for "perl variable" it returns a '502 Bad Gateway' response and the version 'nginx/0.8.5'. This happens every time I try the search but not for other terms.by davidc - Site Suggestions
I tried patching nginx to produce a '210 Custom Response' which is just a 2xx success response but without any content. As it doesn't use content I thought it should behave like the existing HTTP_NO_CONTENT response. Is there any problem in doing it this way? Is there a better way to add it? diff -crB /usr/src/redhat/BUILD/nginx-0.7.61/src/http/modules/ngx_http_headers_filter_module.c nginby davidc - Nginx Mailing List - English
Hi Igor, Thanks for the patch! I just realized it's now in the stable 0.7.x release. As a test, I tried adding a '207 response code by modifying the files below and return 'HTTP_CUSTOM_RESPONSE' from the perl handler. It didn't work so perhaps you could point me to where I'm going wrong? diff -r orig/nginx-0.7.61/src/http/modules/perl/nginx.pm nginx-0.7.61/src/http/modules/perl/nginx.by davidc - Nginx Mailing List - English
Thanks for the speedy nginx and speedy reply Igor. The $status value does indeed log the 200 response. Is it possible to configure nginx to return custom http status codes? e.g. use a 299 and 298 code that are interpreted as a 200 OK by a custom http client. The last two digits would signal information that would otherwise have to be contained in a new header or body.by davidc - Nginx Mailing List - English
I'm testing the embedded perl module. Is it possible to log the return value? i.e. can I set $return to capture the return value of the handler in this example? log_format main 'Return value is $return'; access_log /path/to/access.log main; server { location / { perl Module::handler; } }by davidc - Nginx Mailing List - English