Serve HTML file nginx (index.html or static)

Permission for /home/apps/snake: 755 you can using https://chmod-calculator.com/ for custom permission. 


server {  

    listen 80;
    server_name domain;

    access_log /var/log/nginx/access.log;
    error_log  /var/log/nginx/so_error.log;

    root /home/apps/snake;
    index index.html;

    location / {
        try_files $uri $uri/ =404;
    }
}

Posting Komentar

0 Komentar