summaryrefslogtreecommitdiff
path: root/nginx-php.conf
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2024-06-07 08:18:38 +0000
committerCoprDistGit <infra@openeuler.org>2024-06-07 08:18:38 +0000
commit18402a31d54ca8b1ab67abb64eadf80a9e5565f6 (patch)
tree7558505cd445977fff4ef78a7d598b6388f5c15e /nginx-php.conf
parent0fd92ab5ed82aa6d567e6ebcc700d9ab1cd37357 (diff)
automatic import of php
Diffstat (limited to 'nginx-php.conf')
-rw-r--r--nginx-php.conf14
1 files changed, 14 insertions, 0 deletions
diff --git a/nginx-php.conf b/nginx-php.conf
new file mode 100644
index 0000000..9b01536
--- /dev/null
+++ b/nginx-php.conf
@@ -0,0 +1,14 @@
+# 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$ {
+ try_files $uri =404;
+ fastcgi_intercept_errors on;
+ fastcgi_index index.php;
+ include fastcgi_params;
+ fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
+ fastcgi_pass php-fpm;
+}