1. 테스트 소스
https://github.com/beego/samples/tree/master/todo
go build
./main
2. nginx 설정
server {
listen 80;
server_name beego.test.com;
access_log /var/log/nginx/beegodemo-access.log combined;
location = /favicon.ico { access_log off; log_not_found off; }
location / {
proxy_pass http://127.0.0.1:8080;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
}
}
'오픈소스 > nginx' 카테고리의 다른 글
nginx log format 정의 (0) | 2018.02.02 |
---|---|
nginx for syslog (0) | 2018.02.02 |
nginx for http2 (0) | 2018.02.02 |
nginx ssl 설정 (0) | 2018.02.02 |
nginx for flask (0) | 2018.02.02 |