I will put redmine docker in sub-URI,but i fail with: Page not found
location /rmi/ {
proxy_pass http://localhost:3000; # 注意这里没有路径
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
# 保留原始路径信息
proxy_set_header X-Original-URI $request_uri;
}
I will put redmine docker in sub-URI,but i fail with: Page not found
location /rmi/ { proxy_pass http://localhost:3000; # 注意这里没有路径 proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Proto $scheme; # 保留原始路径信息 proxy_set_header X-Original-URI $request_uri; }