回答編集履歴
1
proxy_passに$request_uriを追加
answer
CHANGED
@@ -4,7 +4,7 @@
|
|
4
4
|
listen 80;
|
5
5
|
server_name ~^(.*).example.com$;
|
6
6
|
location / {
|
7
|
-
proxy_pass http://example.com/$1
|
7
|
+
proxy_pass http://example.com/$1$request_uri;
|
8
8
|
}
|
9
9
|
}
|
10
10
|
|