Closed xworks closed 2 weeks ago
To address the issue where some request URLs are missing the /apollo
prefix after adding it to the access path in Apollo Portal, causing configuration imports to fail, follow these steps:
For Apollo Portal version 1.7.0 and above:
-D
parameter server.servlet.context-path=/apollo
or the system environment variable SERVER_SERVLET_CONTEXT_PATH=/apollo
for apollo-portal.location /apollo/ {
proxy_set_header X-Forwarded-Host $host;
proxy_set_header X-Forwarded-Server $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_pass http://127.0.0.1:8070/apollo/;
}
For Apollo Portal version 1.6.0 and above:
prefix.path=/apollo
configuration parameter to the portal through the Administrator Tools - System Parameters
page.location /apollo/ {
proxy_set_header X-Forwarded-Host $host;
proxy_set_header X-Forwarded-Server $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_pass http://127.0.0.1:8070/;
}
These steps ensure that the /apollo
prefix is correctly handled, allowing for successful configuration imports. If the issue persists, please provide the exact error message and any relevant logs for further assistance. Ensure you have correctly added the /apollo
prefix as per the recommended approach using server.servlet.context-path
.
To continue the conversation, mention @dosu.
This issue has been automatically marked as stale because it has not had activity in the last 30 days. It will be closed in 7 days unless it is tagged "help wanted" or other activity occurs. Thank you for your contributions.
This issue has been automatically closed because it has not had activity in the last 7 days. If this issue is still valid, please ping a maintainer and ask them to label it as "help wanted". Thank you for your contributions.
描述bug
在 apollo-portal统一增加访问路径的前缀/apollo 时,导入配置的请求url 有部分没有添加前缀,导致无法导入配置
复现
通过如下步骤可以复现:
期望
导入成功
截图 点击报错:
额外的细节和日志