In the navigation tree, expand the Configuration node.
Under the Configuration node, expand the HTTP Service node.
Under the Network Config node, select the HTTP Listeners node.
The HTTP Listeners page opens.
On the HTTP Listeners page, click the name of the HTTP listener that you are editing.
The Edit HTTP Listener page opens.
In the Port field, type the port number on which the HTTP listener will listen.
Legal values are 1 through 65535. On a UNIX system, creating sockets that listen on ports 1 through 1024 requires superuser privileges.
Select or deselect the Status Enabled checkbox to change the status of the HTTP listener.
The listener can be enabled or disabled. This option is enabled by default. If the listener is disabled, any attempts to connect to the listener result in a socket exception (java.net.ConnectException
).
Select the Security Enabled checkbox to enable security for the HTTP listener.
This option is disabled by default.
If you are configuring the admin-listener
for the domain administration server (DAS), which uses the server-config
configuration, this option is read-only. To enable security for this listener, you must enable secure administration. See Secure Administration.
Select the JK Listener Enabled checkbox to specify that the listener supports Apache's mod-jk
protocol.
The mod-jk
protocol is a proprietary communication/network protocol between Apache's httpd
(web server) and an GlassFish Server back-end instance. If the listener supports this protocol, httpd
is supposed to handle all static content, whereas any requests for dynamic resources (i.e., Servlets and JSPs) are routed to the mod-jk
enabled HTTP listener of the GlassFish Server, using the mod-jk
protocol. This option is disabled by default.
In the Address field, type the IP address on which the HTTP listener will listen.
The address can be in dotted-pair or IPv6 notation. It can be any
(for INADDR_ANY
) to listen on all IP addresses. It can be a hostname.
From the Default Virtual Server drop-down list, select the virtual server to be associated with this HTTP listener.
Use the Virtual Servers page to define virtual servers.
From the Thread Pool drop-down list, select the thread pool to be associated with the HTTP listener.
Normally, you select one of the two thread pools that are configured when you install the GlassFish Server.
In the Server Name field, type the host name to be used in the URLs the server sends to the client.
This name is the alias name if your server uses an alias. If your server does not use an alias, leave this field blank.
This value affects URLs the server automatically generates; it does not affect the URLs for directories and files stored in the server. If your server uses an alias, the server-name should be the alias name. If a colon and port number are appended, that port is used in URLs the server sends to the client. If a scheme and ://
are prepended, the scheme will be used in the URLs.
Click Save.
Tip:
To return to the default settings, click the Load Defaults button, then click Save.
If you enabled security for the HTTP listener, you can use the SSL tab to edit the SSL settings of the HTTP listener.
An HTTP listener is a type of network listener. To access advanced features, you can edit an HTTP listener using the Network Listener pages.