0

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?

Johshi
  • 113
  • 1
  • 5
  • You need to post more information - the whole Nginx configuration, server logs. You look like you're trying to set up SSL certificates - you may find my tutorial on this useful: https://www.photographerstechsupport.com/tutorials/hosting-wordpress-on-aws-tutorial-part-5-free-https-https2-for-wordpress-using-lets-encrypt-aws/ – Tim Sep 22 '16 at 02:50
  • @Tim, everything else is untouched. – Johshi Sep 22 '16 at 02:56
  • 1
    Yes, but "everything else" is important. You seem to be on a Debian-based system, and they infamously _do not_ use the nginx configuration shipped with nginx, but instead replace it with their own. – Michael Hampton Sep 22 '16 at 02:59
  • We don't know what the defaults are. You haven't posted error logs. If you read the tutorial I posted a link to you can probably figure this out yourself. You won't get any useful help if you don't give enough information for people to help you, instead your question will be closed. – Tim Sep 22 '16 at 02:59
  • @Tim, but I can open it again, right? – Johshi Sep 22 '16 at 03:15
  • I believe you can ask another question if this one is closed. You just need to give more information if you want help. – Tim Sep 22 '16 at 04:10
  • You have to add this. server_name my_domain.com; – gloom700 Sep 22 '16 at 05:46
  • @gloom700, tnx. – Johshi Sep 22 '16 at 09:58

0 Answers0