ubuntu 18 , nginx + tomcat 연동
nginx, tomcat 설치후 /etc/nginx/conf.d 폴더에 tomcat.conf 파일 생성후 아래 내용 입력 /etc/nginx/conf.d/tomcat.conf upstream tomcat { ip_hash; server 127.0.0.1:8080; } server { listen 80; server_name localhost; location / { proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header Host $http_host; proxy_pass http://tomcat; proxy_redirect off; charset ut..
카테고리 없음
2019. 12. 5. 16:00