comparison .nginx.conf @ 0:78edf6b517a0 draft

24.10
author Coffee CMS <info@coffee-cms.ru>
date Fri, 11 Oct 2024 22:40:23 +0000
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:78edf6b517a0
1 # Минимальный конфигурационный файл для nginx
2 # Больше опций https://coffee-cms.ru/nastroyka-nginx-dlya-coffee-cms
3 server {
4 server_name nginx.coffee-cms.ru;
5 listen 80;
6 root /var/www/nginx.coffee-cms.ru/html;
7 location / {
8 index index.html /.cms/index.php;
9 # чтобы страницы не скачивались как файлы:
10 default_type text/html;
11 try_files $uri $uri/ /.cms/index.php?$query_string;
12 }
13 location ~ \.php(/|$) {
14 try_files $uri $uri/ /.cms/index.php?$query_string;
15 fastcgi_split_path_info ^(.+\.php)(/.+)$;
16 fastcgi_pass unix:/run/php/php7.3-fpm.sock;
17 fastcgi_buffering off;
18 fastcgi_request_buffering off;
19 fastcgi_index index.php;
20 include fastcgi.conf;
21 fastcgi_param PATH_INFO $fastcgi_path_info;
22 expires off;
23 }
24 }