I created one html file under one user file, and I want Nginx to serve this html file. But the website always show the default one. I am new to Nginx, I want someone help me with this.
Any help would be grateful, I really want some help with that. Thank You
Answer updated thanks to Tero Kilkanen observation
I believe the issue is caused by the server_name you have specified. Upon looking at the Nginx documentation (http://nginx.org/en/docs/http/server_names.html) the server_name needs to be in 1 of the following formats:
The documentation does have an example that has a _ as a server_name however the listen directive declares it as the default server. So looking at your config if you change it to be the following it should work:
On a side note as Paul noted it is best not to use screenshots for configuration files. The reasons are that: