2023-01-17 11:10:21 +03:00
|
|
|
server {
|
|
|
|
listen 80 default;
|
|
|
|
|
|
|
|
server_name localhost;
|
|
|
|
|
2023-11-27 16:22:27 +03:00
|
|
|
client_max_body_size 128M;
|
2023-01-17 11:10:21 +03:00
|
|
|
|
|
|
|
access_log /var/log/nginx/application.access.log;
|
|
|
|
|
2023-07-10 16:18:44 +03:00
|
|
|
root /var/www/html;
|
2023-01-17 11:10:21 +03:00
|
|
|
|
2023-07-10 16:18:44 +03:00
|
|
|
index index.php index.html;
|
2023-07-07 13:41:02 +03:00
|
|
|
|
2023-01-17 11:10:21 +03:00
|
|
|
location / {
|
2023-07-17 11:30:27 +03:00
|
|
|
try_files $uri $uri/ /index.php?$args;
|
2023-01-17 11:10:21 +03:00
|
|
|
}
|
2023-07-17 11:30:27 +03:00
|
|
|
|
2023-11-20 14:46:19 +03:00
|
|
|
location ~ ^.+.php {
|
2023-01-17 11:10:21 +03:00
|
|
|
fastcgi_pass php-fpm:9000;
|
2023-11-20 14:46:19 +03:00
|
|
|
fastcgi_split_path_info ^(.+?.php)(/.*)$;
|
2023-01-17 11:10:21 +03:00
|
|
|
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
|
|
|
fastcgi_param PHP_VALUE "error_log=/var/log/nginx/application_php_errors.log";
|
|
|
|
fastcgi_buffers 16 16k;
|
|
|
|
fastcgi_buffer_size 32k;
|
2023-07-17 11:30:27 +03:00
|
|
|
fastcgi_index index.php;
|
2023-01-17 11:10:21 +03:00
|
|
|
include fastcgi_params;
|
|
|
|
}
|
2023-07-10 16:18:44 +03:00
|
|
|
|
|
|
|
location ~ /\.ht {
|
|
|
|
deny all;
|
|
|
|
}
|
2023-01-17 11:10:21 +03:00
|
|
|
}
|