我可以使用 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]/pages/

我想为这些应用程序实现 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).