我有2个商店节点,2个发布者节点,2个网关工作人员,1个网关管理器。工作节点和网关管理器使用SVN部署同步器。所有机器都有一个apache做反向代理。我使用[1]添加了CA证书,但创建了自己的密钥库。
当我在Publisher节点发布api并尝试在工作节点上获取它时,所有调用都将重定向到carbon。所以,当我尝试[2]时,我收到了[3]。
CATALINA-server.xml中:
<Connector protocol="org.apache.coyote.http11.Http11NioProtocol"
port="9443"
proxyPort="443"
bindOnInit="false"
sslProtocol="TLS"
sslEnabledProtocols="TLSv1,TLSv1.1,TLSv1.2"
maxHttpHeaderSize="8192"
acceptorThreadCount="2"
maxThreads="250"
minSpareThreads="50"
disableUploadTimeout="false"
enableLookups="false"
connectionUploadTimeout="120000"
maxKeepAliveRequests="200"
acceptCount="200"
server="WSO2 Carbon Server"
clientAuth="false"
compression="on"
scheme="https"
secure="true"
SSLEnabled="true"
compressionMinSize="2048"
noCompressionUserAgents="gozilla, traviata"
compressableMimeType="text/html,text/javascript,application/x-javascript,application/javascript,application/xml,text/css,application/xslt+xml,text/xsl,image/gif,image/jpg,image/jpeg"
keystoreFile="${carbon.home}/repository/resources/security/wso2carbon.jks"
keystorePass="wso2carbon"
URIEncoding="UTF-8"/>
Carbon.xml
...
<HostName>apigateway.serpro.gov.br</HostName>
<MgtHostName>apigateway.serpro.gov.br</MgtHostName>
...
<ServerURL>local:/${carbon.context}/services/</ServerURL>
...
<DeploymentSynchronizer>
<Enabled>true</Enabled>
<AutoCommit>false</AutoCommit>
<AutoCheckout>true</AutoCheckout>
<RepositoryType>svn</RepositoryType>
<SvnUrl>http://<manager ip>/repos/wso2</SvnUrl>
<SvnUser><user></SvnUser>
<SvnPassword><password></SvnPassword>
<SvnUrlAppendTenantId>true</SvnUrlAppendTenantId>
</DeploymentSynchronizer>
...
API-manager.xml
...
<KeyValidatorClientType>WSClient</KeyValidatorClientType>
...
<RevokeAPIURL>https://${carbon.local.ip}:${https.nio.port}/revoke</RevokeAPIURL>
...
[2] - https://apigateway.serpro.gov.br/calc/1.0/divide?x=2&y=1
[3] - https://apigateway.serpro.gov.br/carbon/admin/login.jsp
答案 0 :(得分:1)
问题是apache配置。我发现它在[1] 所有APIManager配置都运行良好。
在Apache,所有呼吁&#34; /&#34;将重定向到:9443 /
现在运作良好。
[1] - https://docs.wso2.com/display/CLUSTER420/Configuring+Apache+Httpd