This is my /etc/nginx/sites-enabled/lelisoft.conf
map $http_accept_language $lang {
default en;
~cs cs;
}
server {
listen 80;
server_name lelisoft.com www.lelisoft.com;
root /var/www/lelisoft.com;
index index.html;
location / {
try_files $uri $uri/ /index-$lang.html /index.html;
}
}
Dir permissions:
root@backend:~# ls -ld /var /var/www /var/www/lelisoft.com/
drwxr-xr-x 13 root root 4096 Dec 20 2021 /var
drwxr-xr-x 6 bud bud 4096 Jun 21 11:12 /var/www
drwxr-xr-x 3 bud bud 4096 Jun 21 11:13 /var/www/lelisoft.com/
ll -d /var/www/lelisoft.com/images/
drwxr-xr-x 2 bud bud 4096 Jun 21 11:13 /var/www/lelisoft.com/images/
ll /var/www/lelisoft.com/images/
total 204
-rw-r--r-- 1 bud bud 205 Jun 21 11:12 cz-flag.svg
-rw-r--r-- 1 bud bud 193446 Jun 21 11:12 hero-section-image-bg.jpg
-rw-r--r-- 1 bud bud 4446 Jun 21 11:12 us-flag.svg
When I open any of the file, I get 404 error.
http://www.lelisoft.com/images/cz-flag.svg
The nginx is serving other site well. I dont see a significant difference and problem in the setup. Nginx logs do not show an error either.