Files
php7-xdebug-vscode/docker/nginx/default.conf
2022-04-05 12:49:23 +03:00

29 lines
761 B
Plaintext

server {
listen 80 default_server;
listen [::]:80 default_server;
server_name localhost;
root /var/www/html;
index index.php;
location / {
client_max_body_size 25M;
try_files $uri $uri/ /index.php?$query_string;
}
location ~ \.php$ {
client_max_body_size 25M;
try_files $uri =404;
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_pass php:9000;
fastcgi_index index.php;
include fastcgi_params;
fastcgi_read_timeout 600;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param PATH_INFO $fastcgi_path_info;
}
error_log /var/log/nginx/project_error.log;
access_log /var/log/nginx/project_access.log;
}