From f5e97515160a590bce6c1630d5a3d8084412e229 Mon Sep 17 00:00:00 2001 From: Rohan Sircar Date: Sat, 11 Jul 2020 18:04:42 +0530 Subject: [PATCH] correction to nginx conf --- Installation.md | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/Installation.md b/Installation.md index 845bdae..6e7b0a1 100644 --- a/Installation.md +++ b/Installation.md @@ -59,11 +59,7 @@ server { if ($host = chat.example.com) { return 301 https://$host$request_uri; } # managed by Certbot - - if ($host = www.chat.example.com) { - return 301 https://$host$request_uri; - } # managed by Certbot - + listen 80 ; listen [::]:80; server_name chat.example.com; @@ -141,6 +137,7 @@ sudo systemctl status chatto ``` and if it fails to start do ``` + sudo journalctl -u chatto ``` to check the cause of the failure.