80;
server_name portfolio.loc www.portfolio.loc;
root /home/danilyuk/www/portfolio.loc;
index index.php;
client_max_body_size 128M;
location / {
root /home/danilyuk/www/portfolio.loc;
if (!-e $request_filename) {
rewrite ^/(.*)$ /index.php?q=$1 last;
}
}
location ~ \.php$ {
try_files $uri =404;
fastcgi_split_path_info ^(.+\.php)(.*)$;
fastcgi_pass unix:/var/run/php/php7.4-fpm.sock;
fastcgi_index index.php;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
fastcgi_ignore_client_abort on;
fastcgi_param SERVER_NAME $http_host;
}
location ~ /\.ht {
deny all;
}
}
В консоли браузера находясь в админпанели, 403 ошибка больше не лезет?
Обсуждают сегодня