Report this

What is the reason for this report?

Domain only reachable with port number

Posted on April 24, 2020

Hi all,

This is my first topic, I cant get this out of my head and I need help with the following:

Since I started my website (www.jim.blue) I used the NGINX config tool from digitalocean (https://www.digitalocean.com/community/tools/nginx) and filled in some information I need, my website is working fine now and is very secure.

But,

When I was installing Grafana, it is reachable via IP:3000 and domain:3000 but not with my subdomain (for instance grafana.mon.jim.blue) I have a reverse proxy set in my config like so:

server {
        listen 443;# ssl http2;
        listen [::]:443;# ssl http2;

        server_name grafana.mon.jim.blue;

        # SSL
        #;#ssl_certificate /etc/letsencrypt/live/grafana.mon.jim.blue/fullchain.pem;
        #;#ssl_certificate_key /etc/letsencrypt/live/grafana.mon.jim.blue/privkey.pem;
        #;#ssl_trusted_certificate /etc/letsencrypt/live/grafana.mon.jim.blue/chain.pem;

        # security
        include nginxconfig.io/security.conf;

        # logging
        access_log /var/log/nginx/grafana.mon.jim.blue.access.log;
        error_log /var/log/nginx/grafana.mon.jim.blue.error.log warn;

        # reverse proxy
        location / {
                proxy_pass http://127.0.0.1:3000;
                include nginxconfig.io/proxy.conf;
        }

        # additional config
        include nginxconfig.io/general.conf;
}

# HTTP redirect
server {
        listen 80;
        listen [::]:80;

        server_name grafana.mon.jim.blue;

        include nginxconfig.io/letsencrypt.conf;

        location / {
                return 301 https://grafana.mon.jim.blue$request_uri;
        }
}

I have disabled ssl for now, otherwise I cannot get a LetsEncrypt Certificate.

I hope someone can help me figure this out.

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Start building today

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.