※ 해당 문서는 STATIC 4.4.2 까지 버전에서만 정상 작동합니다.
이 가이드는 다중 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