我正在使用WSO2 API管理器来创建和管理开发者社区。据我所知,API管理器是在WSO2 Carbon Server上驱动的,该服务器又在Apache Tomcat上运行。
到目前为止,我可以运行WSO2 API管理器而没有任何问题。我可以使用以下网址打开商店和发布者。
https://<MyHostName>:9443/publisher https://<MyHostName>:9443/store
我想知道的是,如何将这两个URL公开?我想要以下类似的URL(无端口)。
https://<MyHostName>/publisher https://<MyHostName>/store
要么
https://publisher.<MyHostName> https://store.<MyHostName>
考虑到对于没有https(只是http)的URL,如果可能的话会很棒。
在WSO2 API管理器中,如何向公众公开发布者和商店的URL?
您可以通过编辑catalina- server.xml文件<APIM>/repository/conf/tomcat夹中的文件来执行此操作。更改NIO连接器中指定的port和redirectPort值。
catalina- server.xml
<APIM>/repository/conf/tomcat
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"/>