Split fastcgi socket path and document root option and add the
authorreyk <reyk@openbsd.org>
Sun, 3 Aug 2014 11:16:10 +0000 (11:16 +0000)
committerreyk <reyk@openbsd.org>
Sun, 3 Aug 2014 11:16:10 +0000 (11:16 +0000)
commite46d51a0fa0c672b0f4d1e004169f6c2e99fd3d5
treee8db42050182cd70302f0c7eaca0df2ffc9718b2
parent74dc588c7be9f122fd617c410ce67dad0851af12
Split fastcgi socket path and document root option and add the
SCRIPT_FILENAME CGI param with a prepended root.  This fixes php-fpm
that expects SCRIPT_FILENAME and also works with slowcgi if you
configure the root correctly.  For example, if SCRIPT_NAME and
REQUEST_URI are /php/index.php, root is /htdocs, SCRIPT_FILENAME will
be /htdocs/php/index.php.  As tested and discussed with florian@
usr.sbin/httpd/config.c
usr.sbin/httpd/httpd.h
usr.sbin/httpd/parse.y
usr.sbin/httpd/server_fcgi.c
usr.sbin/httpd/server_file.c