-
Notifications
You must be signed in to change notification settings - Fork 0
/
meteo nginx config
38 lines (32 loc) · 1.19 KB
/
meteo nginx config
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
server {
#include common/error.conf;
listen 80; #слушаем порт 80
root /home/dmelessa/web/; #расположение директории сайта
server_name _;
error_page 400 = /error400.html;
location /error400.html {
internal;
root /;
}
try_files /index.html /index.htm /index.php;
# Этот блок location задаёт “/” в качестве префикса,
# который сравнивается с URI из запроса.
location / {
try_files $uri $uri.html /$uri /$uri.html =404;
}
location = /pepega {
try_files /register.html =404;
}
location = /{
try_files /index.html /index.html /index.php =404;
}
#передаем PHP скрипты FastCGI серверу
location ~ \.php$ {
root /home/dmelessa/web/php;
include snippets/fastcgi-php.conf;
fastcgi_pass unix:/run/php/php7.3-fpm.sock;
# fastcgi_param DOCUMENT_ROOT $document_root/php;
# fastcgi_param SCRIPT_FILENAME $fastcgi_script_name;
# fastcgi_param SCRIPT_NAME $fastcgi_script_name;
}
}