Answer the question
In order to leave comments, you need to log in
Why are there no rights for nginx?
Simple config
server {
listen 80;
server_name somesite.ru www.somesite.ru;
root /home/admin/web/somesite.ru/www/;
index index.php;
location ~* \.(jpg|css|png|js|ico|html)$ {
access_log off;
expires max;
log_not_found off;
}
location / {
set $somesite_path /home/admin/web/somesite.ru/www;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $somesite_path$fastcgi_script_name;
fastcgi_param DOCUMENT_ROOT $root_path;
}
}
access_log /home/admin/web/somesite.ru/log/access.log combined;
error_log /home/admin/web/somesite.ru/log/error.log debug;
nginx[21989]: nginx: [emerg] open() "/home/admin/web/somesite.ru/log/access.log" failed (13: Permission denied)
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question