- Completed the Domain Name resolution. E.g. superset.websoft9.cn
- Modify the related server configuration in the file /etc/nginx/conf.d/default.conf
server_name ; changed to server_name _superset.websoft9.cn;
server {
listen 80;
// Domain Name
server_name superset.websoft9.cn;
location / {
proxy_pass http://127.0.0.1:8088;
proxy_connect_timeout 300s;
proxy_send_timeout 900;
proxy_read_timeout 900;
proxy_buffer_size 32k;
proxy_buffers 4 32k;
proxy_busy_buffers_size 64k;
proxy_redirect off;
proxy_hide_header Vary;
proxy_set_header Accept-Encoding '';
proxy_set_header Host $http_host;
proxy_set_header Referer $http_referer;
proxy_set_header Cookie $http_cookie;
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;
}
}
- Restart Nginx
sudo systemctl restart nginx