Unable to open nginx with domain and can't open checkmk in Firefox browser

So I'm unable to open nginx with my domain name, arborhub.io and I can't open checkmk on the browser either.

I decided to try & run checkmk behind nginx instead of apache, which I did successfully. I was hoping to fix the issue of the conflict between apache (checkmk) and nginx.

But I still can't open either programs in my Firefox browser. I initially assumed my Django was causing this 502 gateway page error, but my Django server is running fine.

Also my nginx is running with no problems either with `sudo sDoing 'status' on site arborhub: agent-receiver: running mkeventd: running rrdcached: running npcd: running nagios: running apache: running redis: running crontab: running

Overall state: running ystemctl reload nginx`

● nginx.service - A high performance web server and a reverse proxy server
     Loaded: loaded (/usr/lib/systemd/system/nginx.service; enabled; preset: en>
     Active: active (running) since Wed 2025-04-09 20:03:09 MDT; 3h 49min ago
 Invocation: 5e827ca7649a43b8bd078f49a64d7c77
       Docs: man:nginx(8)
    Process: 10356 ExecStartPre=/usr/sbin/nginx -t -q -g daemon on; master_proc>
    Process: 10360 ExecStart=/usr/sbin/nginx -g daemon on; master_process on; (>
    Process: 15562 ExecReload=/usr/sbin/nginx -g daemon on; master_process on; >
   Main PID: 10361 (nginx)
      Tasks: 5 (limit: 18232)
     Memory: 4.4M (peak: 8.4M)
        CPU: 85ms
     CGroup: /system.slice/nginx.service
             ├─10361 "nginx: master process /usr/sbin/nginx -g daemon on; maste>
             ├─15563 "nginx: worker process"
             ├─15565 "nginx: worker process"
             ├─15566 "nginx: worker process"
             └─15567 "nginx: worker process"

Apr 09 20:03:09 corey-james-HP-Laptop-14-dq0xxx systemd[1]: Starting nginx.serv>
Apr 09 20:03:09 corey-james-HP-Laptop-14-dq0xxx systemd[1]: Started nginx.servi>
Apr 09 23:52:07 corey-james-HP-Laptop-14-dq0xxx systemd[1]: Reloading nginx.ser>
Apr 09 23:52:07 corey-james-HP-Laptop-14-dq0xxx nginx[15562]: 2025/04/09 23:52:>
lines 1-23

I'm even able to run checkmk with no errors with sudo omd start arborhub

Temporary filesystem already mounted
Starting agent-receiver...Already running.
Starting mkeventd...Already running.
Starting rrdcached...Already running.
npcd already started...
Starting nagios...Already running.
Starting apache...(already running: 6839)...OK
Starting redis...Already running.
Initializing Crontab...OK

And I checked the status of arborhub

Doing 'status' on site arborhub:
agent-receiver: running
mkeventd:       running
rrdcached:      running
npcd:           running
nagios:         running
apache:         running
redis:          running
crontab:        running
-----------------------
Overall state:  running

Finally here is my nginx.conf (arborhub.conf) file. PS I edited out my IPv4 address

http {
    include mime.types;
    default_type application/octet-stream;

    sendfile on;
    keepalive_timeout 65;

    # Upstream configuration
    upstream myapp1 {
        ip_hash;
        server srv1.arborhub.io;
        server srv2.arborhub.io;
        server srv3.arborhub.io;
    }

    # Server configuration
    server {
        listen 80;
        server_name arborhub.io;
location / {
            proxy_pass http://127.0.0.1:8000;
            proxy_cache video_cache;
            proxy_cache_revalidate on;
            proxy_cache_background_update on;
            proxy_cache_use_stale updating;
            proxy_cache_lock on;
            proxy_cache_valid 200 7d;
        }

        # Static files
        location /static/ {
            autoindex on;
            alias /home/ubuntu/MyProject/static/;
        }

        # Media files
        location /media/ {
            autoindex on;
            alias /home/ubuntu/MyProject/media/;
}

        # Analytics
        location /analytics {
            rewrite /analytics/(.*) /$1 break;
            proxy_pass http://192.168.1.123:30845;
            proxy_http_version 1.1;
            proxy_set_header Upgrade $http_upgrade;
            proxy_set_header Connection "upgrade";
            proxy_set_header X-Real-IP $remote_addr;
            proxy_set_header X-Forwarded-For $remote_addr;
            proxy_set_header Host $host;
            proxy_connect_timeout 36000;
        }
    }

    server {
        server_name tcno.co;

        location /arborhub {
}
    }

    server {
        server_name tcno.co;

        location /arborhub {
            proxy_pass http://192.168.1.253:5000;
            proxy_set_header Host $host;
            proxy_http_version 1.1;
            proxy_set_header Connection "";
            proxy_cache_bypass $http_upgrade;
            proxy_read_timeout 120s;
        }

        listen 80;
        listen [::]:80;
}

There should be no reason why I can't open both checkmk GUI and nginx with arborhub. I'm pretty sure I configured everything in nginx correctly. I'm also on Ubuntu Desktop 24.04.

Please I need help, this should be an easy fix.

Back to Top