Инструменты пользователя

Инструменты сайта


it:nginx

Это старая версия документа!


Содержание

nginx

http://wiki.urx.su/it:php - про php-fpm

php-fpm

https://itdraft.ru/2019/08/27/ustanovka-nginx-i-php-fpm-na-debian-10/

server {
    listen 80 default_server;
    listen [::]:80 default_server;
 
    set $root_path /var/www/html;
    set $php_sock unix:/var/run/php/php7.3-fpm.sock;
 
    root $root_path;
    index index.php index.html index.htm index.nginx-debian.html;
 
    server_name _;
 
    access_log /var/log/nginx/access.log;
    error_log /var/log/nginx/error.log;
 
    location / {
        try_files $uri $uri/ =404;
    }
 
    location ~ \.php$ {
        include snippets/fastcgi-php.conf;
        fastcgi_pass $php_sock;
        fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
    }
}

https

it/nginx.1593337122.txt.gz · Последнее изменение: 2020/06/28 09:38 — ura2404