parent
00ee0c8605
commit
73e3fc7391
@ -1,18 +1,19 @@ |
|||||||
server { |
server { |
||||||
listen 80; |
listen 80; |
||||||
server_name example.com; |
server_name example.com; |
||||||
root /var/www/http/example; |
root /var/www/http/example; |
||||||
location / { |
index index.php; |
||||||
index index.php index.html error/index.html; |
location / { |
||||||
autoindex off; |
try_files $uri $uri/ /index.php?$query_string; |
||||||
} |
} |
||||||
location ~ \.php(.*)$ { |
|
||||||
fastcgi_pass php7.4:9000; |
location ~ \.php$ { |
||||||
fastcgi_index index.php; |
fastcgi_pass php7.4:9000; |
||||||
fastcgi_split_path_info ^((?U).+\.php)(/?.+)$; |
fastcgi_index index.php; |
||||||
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; |
fastcgi_split_path_info ^((?U).+\.php)(/?.+)$; |
||||||
fastcgi_param PATH_INFO $fastcgi_path_info; |
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; |
||||||
fastcgi_param PATH_TRANSLATED $document_root$fastcgi_path_info; |
fastcgi_param PATH_INFO $fastcgi_path_info; |
||||||
include fastcgi_params; |
fastcgi_param PATH_TRANSLATED $document_root$fastcgi_path_info; |
||||||
|
include fastcgi_params; |
||||||
} |
} |
||||||
} |
} |
||||||
|
Loading…
Reference in new issue