There is a certain directory /nginx_root_dir in which the index.html file lies. How to write a config so that all addresses domain.com , domain.com/app , domain.com/app/1 given index.html?
UPD:
Here is the file itself. In the dest folder is index.html. Why does not it work? Error 404.
server { listen 127.0.0.1:80; server_name nodejs-server.com root /home/ivan/server/fron-end-empty/dest; log_not_found off; charset utf-8; location / { try_files index.html =404; } }