![]() |
|||
You can also take advantage of the abilities of a Domain Name Server (DNS) to assign separate domain names to each of your virtual hosts. Having previously mapped both primary and virtual host names to the same IP address in your Domain Name Server, you could then assign the host names to domain names. For example:
| primary | virtual | |
|---|---|---|
| host name:port | muddy:8080 | zebop:8080 |
| domain name | www.companyA.com | www.companyB.com |
Note: In Java Web Server, virtual hosting defines only separate
document roots -- it does not separate environments in any other way.
It is implemented using the HTTP/1.1 HOST header. For more information
on the use of virtual hosts with Java Web Server, see the Configuring Virtual
Hosts online document.
| --> | --> | Manage | --> | |||||
zebop or muddy). Note: You cannot set up individual cgi-bin directories for
virtual hosts. All CGI scripts must be run from the Java Web Server
cgi-bin directory, server_root/cgi-bin.
Note: If you Add, Modify, or Remove a host, you must Save before the changes take affect.
Top
java-server-feedback@java.sun.com
|
Copyright © 1999
Sun Microsystems, Inc. All Rights Reserved. |