nginx 역방향 에이전트 학습 기록

nginx 역방향 에이전트
Author : Janloong Do_O
tomcat 설정


        
        


        


nginx 설정
#user nobody
     user root

server {
        listen       80;
        server_name  www.aa.com;

    location / {
                #proxy_pass http://www.aa.com:8080/official-website/index.html;
                root   html/official-website;
                index  index.html;
            }

    location /manager {
        proxy_pass http://www.aa.com:8080/manager;
        root   html;
        index  index.html index.htm;
    }
}

server {
        listen       80;
        server_name  pay.aa.com;

    location /examples {
        proxy_pass http://pay.aa.com:8080/examples;
        #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;
            root   html;
            index  index.html index.htm;
        }
    }
  server {
            listen       80;
            server_name  demo.aa.com;

        location / {
                    root   html/mould-sht;
                    index  index.html;
                }
    }

좋은 웹페이지 즐겨찾기