回答編集履歴
1
追記
test
CHANGED
@@ -31,3 +31,39 @@
|
|
31
31
|
}
|
32
32
|
|
33
33
|
```
|
34
|
+
|
35
|
+
|
36
|
+
|
37
|
+
----
|
38
|
+
|
39
|
+
(2018.10.22 12:15追記)
|
40
|
+
|
41
|
+
|
42
|
+
|
43
|
+
ふと思いついたので...
|
44
|
+
|
45
|
+
|
46
|
+
|
47
|
+
力技ですが、rewrite でむりやり URL を書き換えるとどうなるでしょう?
|
48
|
+
|
49
|
+
|
50
|
+
|
51
|
+
```
|
52
|
+
|
53
|
+
location /app/ {
|
54
|
+
|
55
|
+
proxy_set_header X-Real-IP $remote_addr;
|
56
|
+
|
57
|
+
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
58
|
+
|
59
|
+
proxy_set_header Host $http_host;
|
60
|
+
|
61
|
+
rewrite ^/app/(.+) $1 break;
|
62
|
+
|
63
|
+
proxy_pass http://localhost:5000/$1;
|
64
|
+
|
65
|
+
proxy_redirect default;
|
66
|
+
|
67
|
+
}
|
68
|
+
|
69
|
+
```
|