jumpserver解决"Server responded with 0 code"
worker_processes8;user nginx nginx;
events {
worker_connections1024;
}
http {
include mime.types;
default_typeapplication/octet-stream;
log_formatmain'$remote_addr - $remote_user [$time_local] "$request" '
'$status $body_bytes_sent "$http_referer" '
'"$http_user_agent" "$http_x_forwarded_for"';
access_loglogs/access.logmain;
sendfile on;
client_max_body_size 2G;
keepalive_timeout65;
server {
listen 80;
server_name10.1.12.219;
location / {
proxy_set_header Host$host;
proxy_pass http://127.0.0.1:8080;
proxy_set_header X-Real-IP $remote_addr;
}
location /file/upload/ { #另开一个jumpserver进程,上传文件接口
proxy_pass http://127.0.0.1:8082;
}
error_page 500 502 503 504/50x.html;
location = /50x.html {
root html;
}
}
}
页:
[1]