Answer the question
In order to leave comments, you need to log in
Why doesn't it give access?
I have the following config
server {
listen 80;
root /home/ruslan/Разработка/latina;
index index.html index.htm index.php;
server_name latina.site www.latina.site default_server;
add_header X-Frame-Options "SAMEORIGIN";
add_header X-XSS-Protection "1; mode=block";
add_header X-Content-Type-Options "nosniff";
charset utf-8;
location = /favicon.ico { access_log off; log_not_found off; }
location = /robots.txt { access_log off; log_not_found off; }
location ~ \.php$ {
fastcgi_split_path_info ^(.+\.php)(/.+)$;
include snippets/fastcgi-php.conf;
fastcgi_pass unix:/var/run/php/php7.0-fpm.sock;
}
location ~ /\.(?!well-known).* {
deny all;
}
location /admin/ {
alias /home/ruslan/Разработка/latina/admin/public;
fastcgi_index index.php;
}
location / {
try_files $uri $uri/ /index.php?$query_string;
}
}
2018/08/21 09:49:52 [error] 10094#10094: *58 directory index of "/home/ruslan/Разработка/latina/admin/public" is forbidden, client: 127.0.0.1, server: latina.site, request: "GET /admin/ HTTP/1.1", host: "latina.site"
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