HEX
Server: Apache/2.4.58 (Ubuntu)
System: Linux srv1.dlabib.net 6.8.0-94-generic #96-Ubuntu SMP PREEMPT_DYNAMIC Fri Jan 9 20:36:55 UTC 2026 x86_64
User: hbkconsultan_usr (1002)
PHP: 7.4.33
Disabled: NONE
Upload Files
File: //etc/nginx/conf.d/cp1.dlabib.net.conf
server {
    server_name cp1.dlabib.net;
    listen 147.93.58.212:443 ssl;
    ssl_certificate "/var/www/httpd-cert/cp1.dlabib.net_panel.crt";
    ssl_certificate_key "/var/www/httpd-cert/cp1.dlabib.net_panel.key";
    include /etc/nginx/fastpanel2-includes/letsencrypt.conf;
    include /usr/local/fastpanel2-nginx/settings/limits.conf;

    location / {
        proxy_pass https://127.0.0.1:8888;
        proxy_redirect https://127.0.0.1:8888/ /;
        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header X-Forwarded-Port $server_port;
        proxy_set_header X-Forwarded-Proto $scheme;
    }

    location /api/terminal {
        proxy_set_header X-Forwarded-Proto $scheme;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_http_version 1.1;
        proxy_set_header Upgrade $http_upgrade;
        proxy_set_header Connection "upgrade";
        proxy_pass https://127.0.0.1:8888;
    }

    error_log /var/log/nginx/fastpanel-proxy.error.log;
    access_log /var/log/nginx/fastpanel-proxy.access.log;

}

server {
    server_name cp1.dlabib.net;
    listen 147.93.58.212:80;
    include /etc/nginx/fastpanel2-includes/letsencrypt.conf;
    location / {
        return  301 https://$host$document_uri;
    }

    error_log /dev/null crit;
    access_log off;
}