* Roberto De Ioris <[email protected]> [2013-04-03 13:20]: > I have just committed the cgi and cgihelper routing actions.
Thanks a lot! > I am not sure of the implications about SCRIPT_NAME and PATH_INFO > > Let me know if there is something wrong It would be nice to return a 404 in case a script does not exist, currently it logs uwsgi_cgi_run()/execvp(): No such file or directory [plugins/cgi/cgi_plugin.c line 868] invalid CGI output !!! and closes the connection. That allows e.g. something like route-uri = ^/virtual/(.*)$ cgi:/home/gber/cgi-bin/$1 The handling of PATH_INFO and SCRIPT_NAME does not seem to have changed, however even in older revisions it does not seem to be correct at least as I understand it since SCRIPT_NAME is always empty and PATH_INFO always contains the full path. In case of a request of http://127.0.0.1:8000/cgi-bin/index.cgi shouldn't it be like SCRIPT_NAME=/virtual/test.cgi PATH_INFO= rather than SCRIPT_NAME= PATH_INFO=/virtual/test.cgi and in case of http://127.0.0.1:8000/cgi-bin/index.cgi/foo/bar SCRIPT_NAME=/virtual/test.cgi PATH_INFO=/foo/bar rather than SCRIPT_NAME= PATH_INFO=/virtual/test.cgi/foo/bar ? -- Guido Berhoerster _______________________________________________ uWSGI mailing list [email protected] http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi
