简体   繁体   English

如何知道websphere上已安装应用程序的URL

[英]How to know the url of installed application on websphere

I am a novice to web-sphere application server. 我是web-sphere应用服务器的新手。

I am not able to figure out where I can get the url of application installed and what is default port number used for http requests. 我无法弄清楚我在哪里可以获得安装的应用程序的URL以及用于http请求的默认端口号。

Any help will be appreciated. 任何帮助将不胜感激。

The port numbers used can be specific to you particular WAS installation and depends on the topology as well. 使用的端口号可以特定于您的特定WAS安装,也取决于拓扑。 You can either try default 9080 or look for the port number in WAS configuration. 您可以尝试默认9080或在WAS配置中查找端口号。 What you're looking for is WC_defaulthost for http and WC_defaulthost_secure for https. 你要找的是http_的WC_defaulthost和https的WC_defaulthost_secure

If you have access to WAS admin console, navigate to Servers => WebSphere Application Servers and choose your server. 如果您可以访问WAS管理控制台,请导航到Servers => WebSphere Application Servers并选择您的服务器。 Then look for Communication sections which contains Ports. 然后查找包含端口的通信部分。

Of course it is always possible to look for the port number on disk. 当然,始终可以在磁盘上查找端口号。 For example: 例如:
<WAS_HOME>/profiles/<PROFILE_NAME>/logs/AboutThisProfile.txt is generated when creating the profile, so contains the port numbers as well. 创建配置文件时会生成<WAS_HOME>/profiles/<PROFILE_NAME>/logs/AboutThisProfile.txt ,因此也包含端口号。 Then you can take a look at <WAS_HOME>/profiles/<PROFILE_NAME>/config/cells/<CELL_NAME>/nodes/<NODE_NAME>/serverindex.xml 然后你可以看看<WAS_HOME>/profiles/<PROFILE_NAME>/config/cells/<CELL_NAME>/nodes/<NODE_NAME>/serverindex.xml

As mentioned by Michal in his answer, the port can be found in the Administrative console under Servers -> Server types -> WebSphere application servers -> (your server name) -> Ports (in the Connunication section). 正如Michal在他的回答中所提到的,端口可以在管理控制台中的Servers - > Server types - > WebSphere application servers - >(您的服务器名称) - > Ports(在Connunication部分)中找到。

The remainder of the URL can be looked up and configured under Applications -> Application Types -> WebSphere enterprise applications -> (your application name) -> Context Root For Web Modules (in the Web Module Properties section). 可以在应用程序 - >应用程序类型 - > WebSphere企业应用程序 - >(您的应用程序名称) - > Web模块的上下文根(在Web模块属性部分)中查找和配置URL的其余部分。

None of the answer's worked for me as my application used a virtual host. 由于我的应用程序使用虚拟主机,因此没有一个答案对我有用。

In Websphere admin console: 在Websphere管理控制台中:

  1. Navigate to Environment 导航到Environment
  2. then Virtual hosts 那么Virtual hosts
  3. Select your application host 选择应用程序主机
  4. Go to Host Aliases and there you will find the port number. 转到Host Aliases ,您将在那里找到端口号。

There's absolutely no way to do this directly. 绝对没有办法直接这样做。 You have to piecemeal evidence you find in your project and Admin Console and try possibly 100s of URLs before you'll find the correct one. 您必须在项目和管理控制台中找到零碎的证据,并在找到正确的URL之前尝试可能的100个URL。

Sometimes you can get Tomcat to display URLs but you'll need to follow some further config steps. 有时您可以让Tomcat显示URL,但您需要遵循一些进一步的配置步骤。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何在Websphere下的运行时查找应用程序安装目录 - How to find the application installed directory at runtime under websphere 如何知道Java应用程序安装在哪个驱动器上? - How to know on which drive an Java Application is installed? Websphere 8.5:应用程序未安装在“installedApps”目录中 - Websphere 8.5: Application is not installed inside “installedApps” directory 如何在Websphere应用服务器中安装端点URL的SSL证书 - How to install SSL certificate of endpoint URL in Websphere application server 如何在同一WebSphere Application Server上安装的应用程序之间共享EJB本地接口? - How to share EJB local interface across applications installed on the same WebSphere Application Server? 当 Angular 应用程序托管在子目录中时,如何在 Websphere 中进行 URL 重写 - How to do URL-rewriting in Websphere when Angular application is hosted in subdirectory 如何在Websphere Commerce bean中获取Url参数? - How to get Url Parameter in websphere commerce bean? 如何在WebSphere的OSGi企业应用程序中设置记录器? - How to setup a logger in an OSGi Enterprise Application on WebSphere? 如何在Websphere应用程序服务器中配置Classpath? - How to configure Classpath in Websphere application server? 集群中的websphere - 如何知道请求服务于哪个节点? - websphere in cluster - how to know which node the request was served by?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM