I was making two mistakes here:
- I was giving full subdomain address instead of just the subdomain. So for example, instead of writing “kf” I was writing “kf.mydomain.com”
- I was running it with the root user
Fixed these two and it started running with http.
Now my next step is to run it with https. There I get stuck. Now none of my subdomains work. In the logs I see this:
The setup just keeps on running infinitely (until I stop it) without any error. This is what I see:
My server’s port 443 is open. When I try to open https://kf.mydomain.com/ it keeps on running and after some time, I get 504 timed out error from nginx. What could I be doing wrong?