I'm trying to create a simple configuration for nginix for testing. I have 2 files:
/home/user1/tmp_server_data/main_page
/home/user1/tmp_server_data/.well-known/test1
And my config:
# /etc/nginx/sites-available/default
server {
root /home/user1/tmp_server_data;
location ~ /.well-known {
allow all;
}
}
The domain is setup also to point to the ip address where the nginx is installed. But the domain doesn't get resolved, all
(www.)my_domain.com/main_page
(www.)my_domain.com/.well-known/test1
return nothing. Where's an issue?