I have
- created a new user <nginx-user>
- changed the first line in nginx.conf to "user <nginx-user> <nginx-user>"
- sudo chown -R "$USER":<nginx-user> /var/www/be-logic
- sudo chown -R "$USER":<nginx-user> ~/be-logic
- sudo chmod -R 0755 /var/www/be-logic
- sudo chmod -R 0755 ~/be-logic
- changed be-logic.conf to server {
listen 80;
listen [::]:80;
server_name be-logic;
root /var/www/be-logic/html;
location / {
autoindex on;
# index index.html index.htm index.html;
}
location ~* \.(jpg|jpeg|gif|css|png|js|ico|html)$ {
access_log off;
expires max;
}
}
- restarted nginx'
Browsing for http://be-logic or http://be-logic/index.html results in the standard Fedora test page.
This is the last line in the error.log:
"/var/www/be-logic/html/index.html" failed (13: Permission denied), client: 127.0.0.1, server: be-logic, request: "GET /index.html HTTP/1.1", host: "be-logic"
Where is the error?
- created a new user <nginx-user>
- changed the first line in nginx.conf to "user <nginx-user> <nginx-user>"
- sudo chown -R "$USER":<nginx-user> /var/www/be-logic
- sudo chown -R "$USER":<nginx-user> ~/be-logic
- sudo chmod -R 0755 /var/www/be-logic
- sudo chmod -R 0755 ~/be-logic
- changed be-logic.conf to server {
listen 80;
listen [::]:80;
server_name be-logic;
root /var/www/be-logic/html;
location / {
autoindex on;
# index index.html index.htm index.html;
}
location ~* \.(jpg|jpeg|gif|css|png|js|ico|html)$ {
access_log off;
expires max;
}
}
- restarted nginx'
Browsing for http://be-logic or http://be-logic/index.html results in the standard Fedora test page.
This is the last line in the error.log:
"/var/www/be-logic/html/index.html" failed (13: Permission denied), client: 127.0.0.1, server: be-logic, request: "GET /index.html HTTP/1.1", host: "be-logic"
Where is the error?