This commit is contained in:
2022-11-28 10:13:17 +08:00
commit 283bac61eb
7 changed files with 83 additions and 0 deletions

18
nginx/vhost.conf Normal file
View File

@@ -0,0 +1,18 @@
server {
server_name test.local;
listen 80;
root /var/www/;
index index.php;
location / {
try_files $uri $uri/ /index.php$is_args$args;
}
location ~ \.php$ {
try_files $uri /index.php =404;
fastcgi_pass php:9000;
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param PATH_INFO $fastcgi_path_info;
include fastcgi_params;
}
}