enlt commited on
Commit ·
18b5132
1
Parent(s): 1301579
基础php文件
Browse files- default.conf +20 -0
default.conf
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
server {
|
| 2 |
+
listen 80;
|
| 3 |
+
server_name localhost;
|
| 4 |
+
|
| 5 |
+
root /var/www/html;
|
| 6 |
+
index index.php index.html;
|
| 7 |
+
|
| 8 |
+
location / {
|
| 9 |
+
try_files $uri $uri/ /index.php?$query_string;
|
| 10 |
+
}
|
| 11 |
+
|
| 12 |
+
location ~ \.php$ {
|
| 13 |
+
include snippets/fastcgi-php.conf;
|
| 14 |
+
fastcgi_pass unix:/var/run/php/php7.4-fpm.sock;
|
| 15 |
+
}
|
| 16 |
+
|
| 17 |
+
location ~ /\.ht {
|
| 18 |
+
deny all;
|
| 19 |
+
}
|
| 20 |
+
}
|