本指南是一个设置指南,允许作为具有多个 IP 的服务器访问所有 IP。
Proxy 安装
STATIC 安装
在STATIC Luancher Sehll 中终端 web-ui
> stop web-ui
打开***%static_home%/workspace/web-ui/conf/nginx.conf 并修改***
...
http {
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;
server {
listen 80;
server_name 서버 IP(ex: 111.222.333.444); >>> 此部分
#charset koi8-r;
#access_log logs/host.access.log main;
}
# 추가되는 부분
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