Hello,
I am currently using Nginx as a reverse proxy for the Ignition SCADA Perspective client.
All my pages are functioning normally, but I am unable to use the LOGIN interface.
Below is the error I encountered, along with my Nginx configuration file.
server {
listen 443 ssl;
server_name _;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
underscores_in_headers on;
ssl_certificate /root/selfsigned.crt; # 自簽憑證
ssl_certificate_key /root/selfsigned.key; # 自簽私鑰
location ^~ /data/ {
proxy_pass http://192.168.247.130:8088/data/;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection 'upgrade';
proxy_set_header Host $host;
proxy_pass_request_headers on;
proxy_cache_bypass $http_upgrade;
}
location ^~ /system/ {
proxy_pass http://192.168.247.130:8088/system/;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection 'upgrade';
proxy_set_header Host $host;
proxy_pass_request_headers on;
proxy_cache_bypass $http_upgrade;
}
location ^~ /res/ {
proxy_pass http://192.168.247.130:8088/res/;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection 'upgrade';
proxy_set_header Host $host;
proxy_pass_request_headers on;
proxy_cache_bypass $http_upgrade;
}
location ^~ /idp/ {
proxy_pass http://192.168.247.130:8088/idp/;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection 'upgrade';
proxy_set_header Host $host;
proxy_pass_request_headers on;
proxy_cache_bypass $http_upgrade;
}
location ^~ /.well-known/ {
proxy_pass http://192.168.247.130:8088/.well-known/;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection 'upgrade';
proxy_set_header Host $host;
proxy_pass_request_headers on;
proxy_cache_bypass $http_upgrade;
}
location / {
proxy_pass http://192.168.247.130:8088/data/perspective/client/Edge/;
proxy_http_version 1.1;
proxy_set_header Host $host;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection 'upgrade';
proxy_pass_request_headers on;
proxy_cache_bypass $http_upgrade;
}
}