I have a server configured only for port HTTP 80.
Port 443 is disabled on my server.
Domain name - "eugenetree.dev"
As I thought, when I would open my site - the browser would check that there is no "443" port enabled and try to connect to port 80. However now, I just get an error that "This site can’t be reached".
Are there any docs somewhere regarding requirements from browser (particularly Chrome) in terms of how they handle such cases?
nginx config:
server { listen 80; server_name eugenetree.dev; location / { proxy_pass http://localhost:3000; proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection 'upgrade'; proxy_set_header Host $host; proxy_cache_bypass $http_upgrade; }}
server running on port 3000
const express = require('express');const app = express();const port = 3000;app.get('/', (req, res) => { res.send('<h1>test</h1>')})app.listen(port, () => { console.log(`Example app listening on port ${port}`)})