Http Listeners - Sun Microsystems GlassFish Enterprise Server 2.1 Administration Manual

Hide thumbs Also See for GlassFish Enterprise Server 2.1:
Table of Contents

Advertisement

HTTP Listeners

http://www.aaa.com:8080/web1
http://www.bbb.com:8080/web2
http://www.ccc.com:8080/web3
The first URL is mapped to virtual host www.aaa.com, the second URL is mapped to virtual host
www.bbb.com, and the third is mapped to virtual host www.ccc.com.
On the other hand, the following URL results in a 404 return code, because web3 isn't registered
with www.bbb.com:
http://www.bbb.com:8080/web3
For this mapping to work, make sure that www.aaa.com, www.bbb.com, and www.ccc.com all
resolve to your physical server's IP address. They need to be registered with the DNS server for
your network. In addition, on a UNIX system, add these domains to your /etc/hosts file (if the
setting for hosts in your /etc/nsswitch.conf file includes files).
When the Enterprise Server is started, it starts the following virtual servers automatically:
For development, testing, and deployment of web services in a non-production environment,
server is often the only virtual server required. In a production environment, additional virtual
servers provide hosting facilities for users and customers so that each appears to have its own
web server, even though there is only one physical server.
HTTP Listeners
Each virtual server provides connections between the server and clients through one or more
HTTP listeners. Each HTTP listener is a listen socket that has an IP address, a port number, a
server name, and a default virtual server.
HTTP listeners must have a unique combination of port number and IP address. For example,
an HTTP listener can listen on all configured IP addresses on a given port for a machine by
specifying the IP address 0.0.0.0. Alternatively, the HTTP listener can specify a unique IP
address for each listener, but use the same port.
Since an HTTP listener is a combination of IP address and port number, you can have multiple
HTTP listeners with the same IP address and different port numbers (for example, 1.1.1.1:8081
and 1.1.1.1:8082), or with different IP addresses and the same port number (for example,
1.1.1.1:8081 and 1.2.3.4:8081, if your machine was configured to respond to both these
addresses).
150
Sun GlassFish Enterprise Server 2.1 Administration Guide • December 2008
A virtual server named server, which hosts all user-defined web modules
A virtual server named __asadmin, which hosts all administration-related web modules
(specifically, the Admin Console). This server is restricted; you cannot deploy web modules
to this virtual server.

Advertisement

Table of Contents
loading

Table of Contents