无法使用 WSO2 API 管理器访问生产端点 - 企业代理 [英] Can't access to production endpoint with WSO2 API Manager - entreprise proxy
问题描述
我正在为我的团队尝试 wso2 api 管理器.
I'm trying wso2 api manager for my team.
当我遵循快速入门指南时,我不能在实现部分获得一个好的生产端点.wsdl 也是一样的
When i follow the quick start guide, I can't get a good production endpoint in the implement part. It's the same for wsdl
我认为是因为我的电脑上有api manager,而这台电脑在一个企业代理后面.我搜索了文档和堆栈溢出,但我不明白如何说 carbon 来使用代理.
I think it's because I have the api manager on my computer, and this computer is behind a entreprise proxy. I search on the documentation and on stack overflow but I don't understand how I can say carbon to use the proxy.
如果您知道我如何配置 AM 以使用企业代理,我会很高兴
If you have an idea of how I can configure AM to use an entreprise proxy, I will be very happy
我不知道它是否有帮助:我无法使用 localhost 或 127.0.0.1:9443 访问 api 管理器
I don't know if its can help : I can't acces to the api manager whitout using localhost or 127.0.0.1:9443
谢谢!
推荐答案
您需要进行以下配置更改以告诉 API Manager (APIM) 与 Web 代理通信.重新启动 APIM 以使配置更改生效.
You need to make the following configuration changes to tell API Manager (APIM) to talk to the Web proxy. Restart APIM for the config changes to take effect.
编辑以下文件:
<APIM Home>/repository/conf/axis2/axis2.xml
在两个地方添加以下几行:
Add the follow lines in two places:
<parameter name="http.proxyHost" locked="false">proxyName.company.com</parameter>
<parameter name="http.proxyPort" locked="false">1234</parameter>
<parameter name="http.nonProxyHosts" locked="false">localhost</parameter>
在第 483 行附近,添加 3 行新行,完成后如下所示:
Near line 483, add the 3 new lines, such that is looks like this when you’re done:
<transportSender name="http" class="org.apache.synapse.transport.passthru.PassThroughHttpSender">
<parameter name="non-blocking" locked="false">true</parameter>
<parameter name="http.proxyHost" locked="false">proxyName.company.com</parameter>
<parameter name="http.proxyPort" locked="false">1234</parameter>
<parameter name="http.nonProxyHosts" locked="false">localhost</parameter>
</transportSender>
在第 528 行附近,添加 3 行新行,完成后如下所示:
Near line 528, add the 3 new lines, such that is looks like this when you’re done:
<transportSender name="https" class="org.apache.synapse.transport.passthru.PassThroughHttpSSLSender">
<parameter name="non-blocking" locked="false">true</parameter>
<parameter name="http.proxyHost" locked="false">proxyName.company.com</parameter>
<parameter name="http.proxyPort" locked="false">1234</parameter>
<parameter name="http.nonProxyHosts" locked="false">localhost</parameter>
<parameter name="keystore" locked="false">
<KeyStore>
<Location>repository/resources/security/wso2carbon.jks</Location>
<Type>JKS</Type>
<Password>wso2carbon</Password>
<KeyPassword>wso2carbon</KeyPassword>
</KeyStore>
</parameter>
<parameter name="truststore" locked="false">
<TrustStore>
<Location>repository/resources/security/client-truststore.jks</Location>
<Type>JKS</Type>
<Password>wso2carbon</Password>
</TrustStore>
</parameter>
<!--<parameter name="HostnameVerifier">DefaultAndLocalhost</parameter>-->
<!--supports Strict|AllowAll|DefaultAndLocalhost or the default if none specified -->
</transportSender>
重新启动 APIM 以使配置更改生效.
Restart APIM for the config changes to take effect.
这篇关于无法使用 WSO2 API 管理器访问生产端点 - 企业代理的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!