upstream api {
server localhost:55001;
}
server {
listen 80;
location = / {
root /usr/local/sbin/app;
index index.html index.htm;
try_files $uri /index.html;
}
location / {
proxy_pass http://api/;
}
}
192.168.0.10/으로 접속하면 웹으로 보내고
192.168.0.10/foo나
192.168.0.10/bar 같이 나머지 로 접속하면 55001포트로 보내고 싶으면 어캄?
regex로 하는거 있을건데
규식이 개싫은데 손대게 하는구나... /은 처음에서 걸리고 /* 같이 와일드카드 하면 두번째에서 걸릴 줄 알았는데 ㅅㅂ