本指南是一个设置指南,允许作为具有多个 IP 的服务器访问所有 IP。
Proxy 安装
STATIC 安装
在STATIC Luancher Sehll 中停止 web-ui
> stop web-ui
打开***%static_home%/workspace/web-ui/conf/nginx.conf*** 并修改。
...
http {
client_max_body_size 0;
include mime.types;
default_type application/octet-stream;
#log_format main '$remote_addr - $remote_user [$time_local] "$request" '
# '$status $body_bytes_sent "$http_referer" '
# '"$http_user_agent" "$http_x_forwarded_for"';
#access_log logs/access.log main;
sendfile on;
#tcp_nopush on;
#keepalive_timeout 0;
keepalive_timeout 65;
#gzip on;
include services;
server {
listen 80;
server_name 서버 IP(ex: 111.222.333.444); >>> 此部分
#charset koi8-r;
#access_log logs/host.access.log main;
}
...
打开***%static_home%/workspace/web-ui/conf/services*** 并修改。
server {
listen 18010;
server_name localhost;
location / {
proxy_pass <http://localhost:18000>;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
}
}
# 添加的部分
server {
listen 80;
server_name 或者其他 IP;
location / {
proxy_pass <http://STATIC> 서버 IP:80;
****proxy_read_timeout 3600;
proxy_send_timeout 3600;
proxy_connect_timeout 3600;
proxy_buffers 64 16k; # default 8 4k
}
}
在STATIC Luancher Sehll中启动 web-ui
> start web-ui