So I’m not able to view my Django website which is on the domain name, arborhub
Nginx is acting as my web server/reverse proxy. The problem is that I’m also running/using Checkmk to monitor my network/traffic, which uses Apache.
So there must be some kind conflict between apache and my nginx web server for my domain.
I’m also using Ubuntu Desktop 24.04. Here is my arborhub.conf (nginx.conf) file
server {
listen 192.168.1.253:80;
server_name arborhub.io 192.168.1.253;
location / {
include proxy_params;
proxy_pass http://unix:/home/ubuntu/MyProject/app.sock;
}
location /static/ {
autoindex on;
alias /home/ubuntu/MyProject/static/;
}
location /media/ {
autoindex on;
alias /home/ubuntu/MyProject/media/;
}
location /analytics {
rewrite /analytics/(.*) /$1 break;
proxy_pass http://192.168.1.253: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;
}
}
}
http {
upstream myapp1 {
ip_hash;
server srv1.arborhub.io;
server srv2.arborhub.io;
server srv3.arborhub.io;
}
server {
listen 80;
location / {
proxy_pass http://myapp1;
}
}
}
server {
server_name myserver;
listen 80;
return 444;
}
Here are some files
that might help, /etc/bind/arborhub.io
GNU nano 8.1 /etc/bind/arborhub.io
$TTL 86400
@ IN SOA ns1.arborhub.io. admin.arborhub.io. (
2025040102 ; Serial
3600 ; Refresh
1800 ; Retry
1209600 ; Expire
86400 ; Minimum TTL
)
IN NS ns1.arborhub.io.
IN NS ns2.arborhub.io.
@ IN AAAA 2600:6c67:107f:faf1:b297:1a4c:9434:d6c9
ns1 IN AAAA 2600:6c67:107f:faf1:b297:1a4c:9434:d6c9
ns2 IN AAAA 2600:6c67:107f:faf1:b297:1a4c:9434:d6c9
www IN AAAA 2600:6c67:107f:faf1:b297:1a4c:9434:d6c9
@ IN A 192.168.1.253
www IN A 192.168.1.253
finally arborhub.io.zone
GNU nano 8.1 arborhub.io.zone
$TTL 86400
@ IN SOA ns1.arborhub.io. admin.arborhub.io. (
2025040201 ; Serial
3600 ; Refresh
1800 ; Retry
1209600 ; Expire
86400 ; Minimum TTL
)
IN NS ns1.arborhub.io.
IN NS ns2.arborhub.io.
@ IN A 3.33.130.190
ns1 IN A 3.33.130.190
ns2 IN A 192.168.1.253
arborhub.io. IN AAAA fd00:f469:425d:e848::1b11
www IN AAAA fd00:f469:425d:e848::1b11
Basically I get an Apache2 default page when I type in arborhub domain and I can’t login to Checkmk