프로그램 사용/nginx
(angluar/react) router와 nginx
구차니
2019. 5. 31. 16:51
솔찍히 잘 모르겠네
location 안에 넣으라는데 안되는거 같기도 하고..
try_files $uri $uri/ /index.html; |
[링크 : https://wkdtjsgur100.github.io/react-router-deploy/]
+
이상한 짓이 되는 느낌인데
react나 angular.js 에서 링크로 되는 부분을 아래처럼 reverse proxy를 통해 돌려주면 되긴 한다.
좀 깔끔하게.. 여러가지 경로에 대해서 보내는 법을 찾아야 할 듯 한데.. 어떻게 해야 하려나?
proxy_pass http://127.0.0.1:4200/index.html?link; |
+
변수가 있는데 영 안되네.. 후...
[링크 : http://nginx.org/en/docs/http/ngx_http_core_module.html]
[링크 : https://ohgyun.com/622]
+
2019.10.11
$args 로 하위 url을 넘겨 줄수 있는 것으로 보임