nginx if rewrite 정확 한 처리 테이프 와 Url 인자 없 음

500 단어
location ~ / {
	proxy_read_timeout 600s;
	proxy_next_upstream_tries 1;
	client_max_body_size    100m;
	if ($request_uri ~ "/abcd/([^?]*)") {
		set $path $1;
		rewrite . /$path;
		proxy_pass http://127.0.0.1:8081;
		break;
	}
	proxy_pass   http://127.0.0.1:8080;
}

설정 상 rewrite 후 요청 인 자 를 받 지 못 하 는 것 같 습 니 다.사실은 괜찮아 요.
그리고 아래 두 줄 은 다르다.
if ($request_uri ~ "/abcd/([^?]*)") {
    if ($request ~ "/abcd/([^?]*)") {

좋은 웹페이지 즐겨찾기