System hostname | (127.0.0.1) | Operating system | Ubuntu Linux 24.04.1 – | – | – | – Webmin version | 2.202 System hostname sub.domain (127.0.0.1) Operating system Ubuntu Linux 24.04.1 Webmin version 2.202 Authentic theme version 21.20.7 Time on system Saturday, February 1, 2025 5:08 PM Kernel and CPU Linux 6.8.0-52-generic on x86_64 Processor information Intel(R) Core™ i7-3770 CPU @ 3.40GHz, 4 cores System uptime 2 days, 7 hours, 41 minutes
nginx config:
server {
server_name webmin.domain;
# Proxy requests to Webmin
location / {
proxy_pass https://127.0.0.1:10000;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
# WebSocket support
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
}
listen 443 ssl; # managed by Certbot
ssl_certificate /etc/letsencrypt/live/domain-0007/fullchain.pem; # managed by Certbot
ssl_certificate_key /etc/letsencrypt/live/domain-0007/privkey.pem; # managed by Certbot
include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot
# Add HSTS header
add_header Strict-Transport-Security "max-age=31536000; includeSubDomains; preload" always;
}
server {
if ($host = webmin.domain) {
return 301 https://$host$request_uri;
} # managed by Certbot
listen 80;
server_name sub.domain;
return 404; # managed by Certbot
}