Comments (2)
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:
- Ensure you've added the
-D
parameterserver.servlet.context-path=/apollo
or the system environment variableSERVER_SERVLET_CONTEXT_PATH=/apollo
for apollo-portal. - Update your nginx/slb configuration to forward requests correctly. Here's an nginx configuration example:
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/; }
- Ensure you've added the
-
For Apollo Portal version 1.6.0 and above:
- Add the
prefix.path=/apollo
configuration parameter to the portal through theAdministrator Tools - System Parameters
page. - Use the following nginx configuration for forwarding:
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/; }
- Add the
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
.
Details
Sources
- docs/en/faq/common-issues-in-deployment-and-development-phase.md
- apollo-portal/src/main/java/com/ctrip/framework/apollo/portal/service/ConfigsImportService.java
- apollo-portal/src/main/java/com/ctrip/framework/apollo/portal/controller/PrefixPathController.java
- apollo-portal/src/main/scripts/startup.sh
- apollo-portal/src/main/java/com/ctrip/framework/apollo/portal/controller/ConfigsImportController.java
- apollo-common/src/main/java/com/ctrip/framework/apollo/common/controller/GlobalDefaultExceptionHandler.java
- changes/changes-2.2.0.md
About Dosu
This response is meant to be useful and save you time. It is not meant to be a precise solution, but rather a starting point for your own research.
Help me be more useful! Please leave a 👍 if this is helpful and 👎 if it is irrelevant.
To continue the conversation, mention @dosu.
from apollo.
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.
from apollo.
Related Issues (20)
- apollo2.1.0集成pgsql,求给一份pgsql的sql文件。mysql的不可以用 HOT 4
- 无法删除旧的配置 HOT 7
- 在项目namespace数量比较多的情况下(大约1000个),打开页面加载速度很慢,比较影响用户体验,这个是否有什么优化改进方案? HOT 8
- Apollo是否可以支持按照key维度来发布? HOT 4
- 1.8.0,接入一个app.id 使用多个namespace的时候,多个namesapce均开启了accesskey.sercet,这时候接入的配置代码要怎么写呢 HOT 3
- OidcLocalUserService throw an Exception when executing createLocalUser in OIDC profile HOT 6
- 麻烦问下,有什么办法能同时读到多个环境同一个配置的值吗? HOT 4
- 使用客户端添加string类型的配置项时会报错 HOT 2
- 配置从 2.1.0导出,导入到 2.2.0,数据中时间解析失败 HOT 1
- apollo-portal 使用统一前缀/apollo以后,创建集群失败 HOT 2
- k8s部署apollo 接入ldap报错 HOT 2
- 请问有大佬已经在2.2.0版本上,数据源由mysql切换至pg了嘛? HOT 1
- 脚本启动与停止的问题 HOT 3
- 删除App后,相似的AppID权限异常,并无法恢复 HOT 4
- dockerfile基础镜像漏洞 HOT 4
- 使用docker安装apollo 镜像里面的demo.sh缺少读取环境变量的逻辑 HOT 2
- yml读取k-v的值错误 HOT 2
- Beautify Portal TraceLog UI interface
- 发现服务实例数很多的情况下,这里会导致config Service请求分配很不均匀,可以是否可以加上负载均衡策略来优化下? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from apollo.