|
|
|
@ -107,12 +107,12 @@ http { |
|
|
|
proxy_set_header X-Real-IP $remote_addr; |
|
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; |
|
|
|
} |
|
|
|
location /efcode20-sup-web/ { |
|
|
|
proxy_pass http://10.76.108.15:12004/; |
|
|
|
proxy_set_header Host $http_host; |
|
|
|
proxy_set_header X-Real-IP $remote_addr; |
|
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; |
|
|
|
} |
|
|
|
# location /efcode20-sup-web/ { |
|
|
|
# proxy_pass http://10.76.108.15:12004/; |
|
|
|
# proxy_set_header Host $http_host; |
|
|
|
# proxy_set_header X-Real-IP $remote_addr; |
|
|
|
# proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; |
|
|
|
# } |
|
|
|
#location ~* /(uploads|images)/.*\.(php|php2|php3|php4|php5|phpm|phpml|phtml|phtm|phps|pht|asp|aspx|asa|cer|cdx|ashx|exe|sh|bash|jsp|jspx|jspa|html|web.config|cfm|cgi|war|ashx|htaccess|py|pl)$ { |
|
|
|
#deny all; # 拦截.html和.htm文件,并返回403禁止访问 |
|
|
|
#return 403; |
|
|
|
@ -264,15 +264,47 @@ http { |
|
|
|
proxy_max_temp_file_size 128m; |
|
|
|
} |
|
|
|
} |
|
|
|
# server { |
|
|
|
# listen 85; |
|
|
|
# server_name localhost; |
|
|
|
# proxy_set_header Host $host; |
|
|
|
# proxy_set_header X-real-ip $remote_addr; |
|
|
|
# proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; |
|
|
|
# client_max_body_size 100M; |
|
|
|
# location / { |
|
|
|
# # proxy_pass http://10.76.108.1:85; |
|
|
|
# proxy_pass http://java_cluster/; |
|
|
|
# proxy_set_header Host $host:$server_port; |
|
|
|
# proxy_set_header REMOTE-HOST $remote_addr; |
|
|
|
# proxy_set_header X-Real-IP $remote_addr; |
|
|
|
# proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; |
|
|
|
# proxy_redirect default; |
|
|
|
# proxy_connect_timeout 600s; |
|
|
|
# proxy_send_timeout 600s; |
|
|
|
# proxy_read_timeout 600s; |
|
|
|
# } |
|
|
|
# |
|
|
|
# location /efcode20-sup-web/ { |
|
|
|
# proxy_pass http://10.76.108.15:12004/; |
|
|
|
# proxy_set_header Host $http_host; |
|
|
|
# proxy_set_header X-Real-IP $remote_addr; |
|
|
|
# proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; |
|
|
|
# } |
|
|
|
# } |
|
|
|
server { |
|
|
|
listen 85; |
|
|
|
listen 85 ssl; |
|
|
|
server_name localhost; |
|
|
|
|
|
|
|
ssl_certificate /efcode20/ssl/selfsigned.crt; |
|
|
|
ssl_certificate_key /efcode20/ssl/selfsigned.key; |
|
|
|
ssl_protocols TLSv1.2 TLSv1.3; |
|
|
|
|
|
|
|
proxy_set_header Host $host; |
|
|
|
proxy_set_header X-real-ip $remote_addr; |
|
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; |
|
|
|
client_max_body_size 100M; |
|
|
|
|
|
|
|
location / { |
|
|
|
# proxy_pass http://10.76.108.1:85; |
|
|
|
proxy_pass http://java_cluster/; |
|
|
|
proxy_set_header Host $host:$server_port; |
|
|
|
proxy_set_header REMOTE-HOST $remote_addr; |
|
|
|
|