나는이 둘 사이에 끼 었어 :nginx에서 위치/{}와 위치/색인 {}을 구별하는 방법이 있습니까?
location/{
#proxy pass to some other location that handles all urls except /index
}
location /index {
#logic to handle the index
}
현재 내가 실행할 때의 nginx 첫
위치/ 블록이 실행됩니다 그리고 난 다른 컴퓨터로 리디렉션 및
위치/인덱스 이 아닌 호출되는 중입니다.이 둘을 구별 할 수있는 방법이 있습니까, 아니면 모든 위치를 구체적으로 작성해야합니다.
위치를'얻을 희망 'example.com/index'와 같이 요청하면'/'위치가 실행됩니다 –