oho/site.conf

17 lines
515 B
Plaintext
Raw Normal View History

2019-09-30 08:22:32 +00:00
server {
2019-09-30 08:32:31 +00:00
index index.php index.html;
server_name php-docker.local;
error_log /var/log/nginx/error.log;
access_log /var/log/nginx/access.log;
2019-09-30 08:22:32 +00:00
root /var/www/html;
location ~ \.php$ {
2019-09-30 08:32:31 +00:00
try_files $uri =404;
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_pass php:9000;
2019-09-30 08:22:32 +00:00
fastcgi_index index.php;
include fastcgi_params;
2019-09-30 08:32:31 +00:00
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param PATH_INFO $fastcgi_path_info;
2019-09-30 08:22:32 +00:00
}
}