jFastCGI / jfastcgi

jFastCGI
Other
38 stars 11 forks source link

SCRIPT_NAME variable not sent #17

Closed pbusquemdf closed 8 years ago

pbusquemdf commented 8 years ago

The FastCGIHandler class send many variables to the PHP backend. However, the SCRIPT_FILENAME variable is sent, the SCRIPT_NAME isn't.

This make php-fpm's status and ping pages inaccessible from the jfastcgi client. Adding the header next to the SCRIPT_FILENAME variable solve the issue.

    addHeader(ws, "SCRIPT_FILENAME", req.getRealPath(scriptPath));