nginx简单配置
2019-05-22 本文已影响0人
无我_a50f
# HTTPS server
server {
listen 80;
server_name ****.com;
location / {
proxy_pass http://172.16.0.214:8361/;
client_max_body_size 100m; #ÔÐμþÉ´«×´ó00M
proxy_redirect off;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header REMOTE-HOST $remote_addr;
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";
}
access_log /etc/nginx/logs/****.com.access.log main;
error_log /etc/nginx/logs/****.com.error.log error;
}