我正在使用WSO2 API Manager来创建和管理开发人员社区。根据我的知识,API管理器是在WSO2 Carbon Server上运行的,它再次在Apache Tomcat上运行。
到目前为止,我能够毫无问题地运行WSO2 API管理器。我可以使用以下网址打开商店和发布商。
https://<MyHostName>:9443/publisher
https://<MyHostName>:9443/store
我想知道的是,如何将这两个网址公开?我想像下面的URL(没有端口)。
https://<MyHostName>/publisher
https://<MyHostName>/store
或
https://publisher.<MyHostName>
https://store.<MyHostName>
鉴于对于没有https(只是http)的网址,如果可能的话会很棒。
在WSO2 API Manager中,如何公开Publisher&amp;将网址存储为公开?
答案 0 :(得分:3)
您可以通过编辑位于catalina-server.xml
文件夹中的<APIM>/repository/conf/tomcat
文件来执行此操作。更改NIO连接器中指定的port
和redirectPort
值。
<Connector protocol="org.apache.coyote.http11.Http11NioProtocol"
port="80"
redirectPort="443"
bindOnInit="false"
maxHttpHeaderSize="8192"
acceptorThreadCount="2"
maxThreads="250"
minSpareThreads="50"
disableUploadTimeout="false"
connectionUploadTimeout="120000"
maxKeepAliveRequests="200"
acceptCount="200"
server="WSO2 Carbon Server"
compression="on"
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"
URIEncoding="UTF-8"/>
<Connector protocol="org.apache.coyote.http11.Http11NioProtocol"
port="443"
bindOnInit="false"
sslProtocol="TLS"
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"
URIEncoding="UTF-8"/>