繁体   English   中英

我可以使用DNS名称为同一服务器上的多个不同Web应用程序创建简单地址吗?

[英]Can I use DNS names to make simple addresses for several different web applications on the same server?

我在weblogic 10.3.6服务器上部署了四个war文件。 它们都具有以下地址模式

[ip地址] / [AppName] /页面/

  • ip地址对于所有应用程序都是相同的。
  • 所有应用程序的应用程序名称均不同。
  • 所有应用程序都在web.xml中将/ pages / *实现为servlet侦听器模式

我想为这些应用程序实现dns名称。 我对DNS不太了解,但是dns名称似乎仅用于替换地址的ip部分。 但是,是否可以通过某种方式创建四个不同的地址来引用已部署Web应用程序的整个URL路径?

是的,您可以使用虚拟主机执行此操作。 基本上,相同的IP将根据您使用的主机名为不同的应用程序提供服务。 请参阅此处以获取Weblogic文档:

http://docs.oracle.com/cd/E14571_01/apirefs.1111/e13952/taskhelp/virtual_hosts/VirtualHosts.html

从文档:

A virtual host is a set of host names to which WebLogic Server instances (servers) or clusters respond. Create virtual hosts in order to maintain more than one server on only one machine. Configure virtual hosts to meet your specifications.

To create a virtual host: * If you have not already done so, in the Change Center of the Administration Console, click Lock & Edit (see Use the Change Center). * In the left pane of the Console, expand Environment and select Virtual Hosts. Click New. * On the Create a New Virtual Host page, enter the name that will identify your virtual host. * Note: Once you create a virual host, you cannot rename it. Instead, you must delete it and create another one that uses a new name. * Click OK. * To activate these changes, in the Change Center of the Administration Console, * click Activate Changes. * Not all changes take effect immediately—some require a restart (see Use the Change Center). * If you have not already done so, in the Change Center of the Administration Console, click Lock & Edit (see Use the Change Center). * In the left pane of the Console, expand Environment and select Virtual Hosts. Click New. * On the Create a New Virtual Host page, enter the name that will identify your virtual host. * Note: Once you create a virual host, you cannot rename it. Instead, you must delete it and create another one that uses a new name. * Click OK. * To activate these changes, in the Change Center of the Administration Console, * click Activate Changes. * Not all changes take effect immediately—some require a restart (see Use the Change Center).

暂无
暂无

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM