WebSphere AppServer Liberty:如何防止将系统应用程序发布到plugin-cfg.xml
配置管理中心时,${server.config.dir}/logs/state/plugin-cfg.xml文件包含系统应用程序的uri路由规则。我不想通过HTTP服务器发布管理中心,而是想让它保持私有访问WebSphere AppServer Liberty:如何防止将系统应用程序发布到plugin-cfg.xml,websphere,websphere-liberty,Websphere,Websphere Liberty,配置管理中心时,${server.config.dir}/logs/state/plugin-cfg.xml文件包含系统应用程序的uri路由规则。我不想通过HTTP服务器发布管理中心,而是想让它保持私有访问 <UriGroup Name="default_host_neon1_default_node_Cluster_URIs"> <Uri AffinityCookie="JSESSIONID" AffinityURLIdentifier="jsessionid" Name
<UriGroup Name="default_host_neon1_default_node_Cluster_URIs">
<Uri AffinityCookie="JSESSIONID" AffinityURLIdentifier="jsessionid" Name="/Sample/*"/>
<Uri AffinityCookie="JSESSIONID" AffinityURLIdentifier="jsessionid" Name="/IBMJMXConnectorREST/*"/>
<Uri AffinityCookie="JSESSIONID" AffinityURLIdentifier="jsessionid" Name="/ibm/api/*"/>
<Uri AffinityCookie="JSESSIONID" AffinityURLIdentifier="jsessionid" Name="/ibm/adminCenter/explore-1.0/*"/>
<Uri AffinityCookie="JSESSIONID" AffinityURLIdentifier="jsessionid" Name="/ibm/adminCenter/serverConfig-1.0/*"/>
<Uri AffinityCookie="JSESSIONID" AffinityURLIdentifier="jsessionid" Name="/adminCenter/*"/>
</UriGroup>
我找不到从plugin-cfg.xml(例如在server.xml中)删除URL的任何设置。如何从plugin-cfg.xml文件中删除这些路由规则?我应该手动编辑该文件吗?有一种非手动方式。您需要将管理中心绑定到其他端口。无论如何,这是一件好事,因为它只是在应用程序和管理流量之间增加了更多的分离。为此,您需要定义两个http端点:
<httpEndpoint id="defaultHttpEndpoint" host="*" httpPort="9080" />
<httpEndpoint id="appHttpEndpoint" host="*" httpPort="9081" />
然后为应用程序定义虚拟主机(如果愿意,还可以将虚拟主机绑定到特定端点):
您的主持人姓名:9081
您还需要使默认主机仅绑定到一个端口
<virtualHost id="default_host">
<hostAlias>your_host_name:9080</hostAlias>
</virtualHost>
您的主机名:9080
然后将webApplication绑定到应用程序主机:
还有最后一件事,您需要将插件配置为使用appHttpEndpoint而不是defaultHttpEndpoint:
<pluginConfiguration httpEndpointRef="appHttpEndpoint"/>
pluginConfiguration上的httpEndpointRef的默认值是defaultHttpEndpoint,因此,如果需要,您可以使用defaultHttpEndpoint进行应用程序配置,并将管理通信量移动到其他端点
有用的知识中心参考资料包括:
<pluginConfiguration httpEndpointRef="appHttpEndpoint"/>