port{}
BlockThere are two primary changes to the port{}
blocks in Sun WebServer 2.0: the hosts_supported
directive is no longer valid as the ports a host listens on are now listed using the conn_end_points
directive in the url{}
block, and all ports must have an ip_address
specified. The IP address 0.0.0.0 is special and means "all valid IP addresses on this machine".
port{}
block for a specific IP address Given the following Sun WebServer 1.0 port{}
block:
port 80 { ip_address 129.128.127.126 keepalive_enable "yes" request_timeout 180 hosts_supported widgets } |
Modify the widgets url{}
block in /etc/http/server1.httpd.conf to have conn_end_points
specified correctly:
url //widgets { site_enable "yes" site_path "/var/http/server1/websites/widgets" site_config "conf/widgets.site.conf" conn_end_points 129.128.127.126:80 } |
Add the port{}
block to /etc/http/server1.httpd.conf (without the hosts_supported
directive):
port 80 { ip_address 129.128.127.126 keepalive_enable "yes" request_timeout 180 } |
port{}
block for all IP addresses Given the following Sun WebServer 1.0 port{}
block example:
port 1880 { keepalive_enable "yes" request_timeout 180 hosts_supported widgets } |
Modify the widgets url{}
block in /etc/http/server1.httpd.conf to have conn_end_points
specified correctly:
url //widgets { site_enable "yes" site_path "/var/http/server1/websites/widgets" site_config "conf/widgets.site.conf" conn_end_points :1880 } |
Add the ip_address
directive with the value 0.0.0.0 to the port{}
block in /etc/http/server1.httpd.conf:
port 1880 { ip_address 0.0.0.0 keepalive_enable "yes" request_timeout 180 } |