Server blocks is not reached in some browsers
I have in the last week started with digitalocean droplet system and have set up my first droplet with LEMP stack while following Initial setup and Quickstart guide. I did remove the tag for the last configuration with the cloud firewall because I did not get it working. I then followed how to set up server blocks which worked pretty much fine with the exception that it doesn’t work on all web browsers.
On chrome it redirects to the default site but on firefox it goes through to the server block. I have tried to look this up on similar questions, fixing it with configuring the firewall, with no success. In /etc/nginx/sites-available there exists four files: mydomain.com, mydomain2.com, default and digitalocean (is digitalocean supposed to be here?). I checked each file to make sure the name server is unique and only one have default server.
I also noticed that when the ip address is in the search field the site says the connection is not secure but when domain.com is searched on chrome it is secured. Alternatively domain.com is not secured on firefox but it does reach the server block.
Any help would make my day!
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.×