enable PHP execution of .phar files, see #1117140
This commit is contained in:
parent
a69929b965
commit
b2791b6eec
@ -4,11 +4,13 @@
|
|||||||
#
|
#
|
||||||
index index.php index.html index.htm;
|
index index.php index.html index.htm;
|
||||||
|
|
||||||
location ~ \.php$ {
|
location ~ \.(php|phar)(/.*)?$ {
|
||||||
try_files $uri =404;
|
fastcgi_split_path_info ^(.+\.(?:php|phar))(/.*)$;
|
||||||
|
|
||||||
fastcgi_intercept_errors on;
|
fastcgi_intercept_errors on;
|
||||||
fastcgi_index index.php;
|
fastcgi_index index.php;
|
||||||
include fastcgi_params;
|
include fastcgi_params;
|
||||||
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
||||||
|
fastcgi_param PATH_INFO $fastcgi_path_info;
|
||||||
fastcgi_pass php-fpm;
|
fastcgi_pass php-fpm;
|
||||||
}
|
}
|
||||||
|
4
php.conf
4
php.conf
@ -21,7 +21,7 @@ DirectoryIndex index.php
|
|||||||
#
|
#
|
||||||
# Cause the PHP interpreter to handle files with a .php extension.
|
# Cause the PHP interpreter to handle files with a .php extension.
|
||||||
#
|
#
|
||||||
<FilesMatch \.php$>
|
<FilesMatch \.(php|phar)$>
|
||||||
SetHandler application/x-httpd-php
|
SetHandler application/x-httpd-php
|
||||||
</FilesMatch>
|
</FilesMatch>
|
||||||
|
|
||||||
@ -50,7 +50,7 @@ DirectoryIndex index.php
|
|||||||
# Enable http authorization headers
|
# Enable http authorization headers
|
||||||
SetEnvIfNoCase ^Authorization$ "(.+)" HTTP_AUTHORIZATION=$1
|
SetEnvIfNoCase ^Authorization$ "(.+)" HTTP_AUTHORIZATION=$1
|
||||||
|
|
||||||
<FilesMatch \.php$>
|
<FilesMatch \.(php|phar)$>
|
||||||
SetHandler "proxy:unix:/run/php-fpm/www.sock|fcgi://localhost"
|
SetHandler "proxy:unix:/run/php-fpm/www.sock|fcgi://localhost"
|
||||||
</FilesMatch>
|
</FilesMatch>
|
||||||
</IfModule>
|
</IfModule>
|
||||||
|
5
php.spec
5
php.spec
@ -62,7 +62,7 @@
|
|||||||
%endif
|
%endif
|
||||||
|
|
||||||
%global rcver RC1
|
%global rcver RC1
|
||||||
%global rpmrel 2
|
%global rpmrel 3
|
||||||
|
|
||||||
Summary: PHP scripting language for creating dynamic web sites
|
Summary: PHP scripting language for creating dynamic web sites
|
||||||
Name: php
|
Name: php
|
||||||
@ -1501,6 +1501,9 @@ rm -f README.{Zeus,QNX,CVS-RULES}
|
|||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Sat May 6 2017 Remi Collet <remi@fedoraproject.org> - 7.1.5-0.3.RC1
|
||||||
|
- enable PHP execution of .phar files, see #1117140
|
||||||
|
|
||||||
* Thu Apr 27 2017 Remi Collet <remi@fedoraproject.org> - 7.1.5-0.2.RC1
|
* Thu Apr 27 2017 Remi Collet <remi@fedoraproject.org> - 7.1.5-0.2.RC1
|
||||||
- new sources from new tag
|
- new sources from new tag
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user