server {
listen 80 default_server;
#listen [::]:80 default_server;
server_name demo.77element.cn;
#server_name _;
#root /usr/share/nginx/html;
# Load configuration files for the default server block.
# include /etc/nginx/default.d/*.conf;
location / {
proxy_set_header X-Real-IP $remote_addr;#代理配置
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;#代理配置
proxy_set_header Host $http_host;#代理配置
proxy_redirect off;#代理配置
proxy_pass https://77element.kmdns.net; #要代理的地址
}
#error_page 404 /404.html;
# location = /40x.html {
# }
#error_page 500 502 503 504 /50x.html;
# location = /50x.html {
#}
}