summaryrefslogtreecommitdiff
path: root/nginx-php.conf
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2024-03-30 11:36:50 +0000
committerCoprDistGit <infra@openeuler.org>2024-03-30 11:36:50 +0000
commit591852f6726a39643a45cefeb805f831686457eb (patch)
tree6eb07a9f59ba9e8adcb669e5a2a23ee7334c449d /nginx-php.conf
parent564644fe819f351ed1aaa9773226e7e9f20ab6a9 (diff)
automatic import of phpopeneuler22.03_LTS_SP3
Diffstat (limited to 'nginx-php.conf')
-rw-r--r--nginx-php.conf16
1 files changed, 16 insertions, 0 deletions
diff --git a/nginx-php.conf b/nginx-php.conf
new file mode 100644
index 0000000..1df1b04
--- /dev/null
+++ b/nginx-php.conf
@@ -0,0 +1,16 @@
+# pass the PHP scripts to FastCGI server
+#
+# See conf.d/php-fpm.conf for socket configuration
+#
+index index.php index.html index.htm;
+
+location ~ \.(php|phar)(/.*)?$ {
+ fastcgi_split_path_info ^(.+\.(?:php|phar))(/.*)$;
+
+ fastcgi_intercept_errors on;
+ fastcgi_index index.php;
+ include fastcgi_params;
+ fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
+ fastcgi_param PATH_INFO $fastcgi_path_info;
+ fastcgi_pass php-fpm;
+}