Unconfigured Ad Widget

Collapse

Announcement

Collapse
No announcement yet.

Implementing Virtual Hosts

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Implementing Virtual Hosts

    You can support multiple Web sites on the IBM HTTP Server and you can do this using virtual hosts. This is an alternative to implementing multiple server instances with different IP addresses. You can run just once instance of the server and assign each customer to a different host name. In the domain name server, you can define all your host names and associate them with the lone IP address of your server. You can then configure the server to serve a differnt set of information depending on the host that is making the request. Requests do not require a port number because the server uses the default. Pretty cool. Has anybody done this? Does anybody know where detailed implementation documentation (cookbook form) can be found? If not, any additional information beyond the fact that it can be done would be greatly appreciated.

  • #2
    Implementing Virtual Hosts

    I am not to sure whether there is any cookbook for this. You may try IBM Redbook at http://www.redbooks.ibm.com/. To setup virtual host, 1) Setup the DNS server to point all the hosts (www.cmp1.com and www.cmp2.com) to the same IP address. 2) In the configuration file, any directive that ask for Server IP Address or Host Name, make sure you specify the host name instead of IP address for each domain or host. Especailly, the Request Routing and Welcome Page directives. That's about it. Now, there are couple things you need to consider whether to use virtual host or multi-instances. If you are running your AS/400 as ISP, virtual hosts will give a much better performance since less jobs are needed (each instance uses 5 or more jobs). However, if you need to make any change to the configuration file, you need to bring every one down and restart the server. In addition, the clients (browsers) must support or use HTTP 1.1 in order for virtual host to work properly. Otherwise, the browser with the HTTP 1.0 will alway see the first host on the list. Shawn Fu

    Comment

    Working...
    X