ibm-information-center/dist/eclipse/plugins/i5OS.ic.rzaie_5.4.0.1/rzaievirtualhosting.htm

91 lines
5.8 KiB
HTML
Raw Normal View History

2024-04-02 14:02:31 +00:00
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html lang="en-us" xml:lang="en-us">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="security" content="public" />
<meta name="Robots" content="index,follow" />
<meta http-equiv="PICS-Label" content='(PICS-1.1 "http://www.icra.org/ratingsv02.html" l gen true r (cz 1 lz 1 nz 1 oz 1 vz 1) "http://www.rsac.org/ratingsv01.html" l gen true r (n 0 s 0 v 0 l 0) "http://www.classify.org/safesurf/" l gen true r (SS~~000 1))' />
<meta name="DC.Type" content="topic" />
<meta name="DC.Title" content="Virtual hosts on HTTP Server" />
<meta name="abstract" content="This topic provides information about virtual host types." />
<meta name="description" content="This topic provides information about virtual host types." />
<meta name="DC.Relation" scheme="URI" content="rzaieconcepts.htm" />
<meta name="copyright" content="(C) Copyright IBM Corporation 2002,2006" />
<meta name="DC.Rights.Owner" content="(C) Copyright IBM Corporation 2002,2006" />
<meta name="DC.Format" content="XHTML" />
<meta name="DC.Identifier" content="rzaievirtualhosting" />
<meta name="DC.Language" content="en-us" />
<!-- All rights reserved. Licensed Materials Property of IBM -->
<!-- US Government Users Restricted Rights -->
<!-- Use, duplication or disclosure restricted by -->
<!-- GSA ADP Schedule Contract with IBM Corp. -->
<link rel="stylesheet" type="text/css" href="./ibmdita.css" />
<link rel="stylesheet" type="text/css" href="./ic.css" />
<title>Virtual hosts on HTTP Server </title>
</head>
<body id="rzaievirtualhosting"><a name="rzaievirtualhosting"><!-- --></a>
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
<h1 class="topictitle1">Virtual hosts on HTTP Server </h1>
<div><p>This topic provides information about virtual host types.</p>
<div class="important"><span class="importanttitle">Important:</span> Information
for this topic supports the latest PTF levels for HTTP Server for i5/OS .
It is recommended that you install the latest PTFs to upgrade to the latest
level of the HTTP Server for i5/OS. Some of the topics documented here are
not available prior to this update. See <a href="http://www-03.ibm.com/servers/eserver/iseries/software/http/services/service.html" target="_blank">http://www.ibm.com/servers/eserver/iseries/software/http/services/service.htm</a> <img src="www.gif" alt="Link outside Information Center" /> for more information. </div>
<p>The concept of virtual hosts allows more than one Web site on one system
or Web server. The servers are differentiated by their host name. Visitors
to the Web site are routed by host name or IP address to the correct virtual
host. Virtual hosting allows companies sharing one server to each have their
own domain names. For example <em>www.company1.com</em> and <em>www.company2.com</em> can
both be hosted on the same server. </p>
<div class="section"><h4 class="sectiontitle">HTTP Server (powered by Apache) virtual host types</h4><p>There
are three variations of virtual hosts on HTTP Server (powered by Apache):
</p>
<dl><dt class="dlterm">IP address-based virtual host </dt>
<dd>The IP address-based virtual host requires one IP address per Web site
(host name). This approach works very well, but requires a dedicated IP address
for every virtual host. For more information on virtual hosts refer to the <a href="rzaiemod_core.htm#virtualhost">&lt;VirtualHost&gt;</a> directive. </dd>
</dl>
<dl><dt class="dlterm">Name-based virtual host </dt>
<dd>The name-based virtual host allows one IP address to host more than one
Web site (host name). This approach allows practically an unlimited number
of servers, ease of configuration and use, and requires no additional hardware
or software. The main disadvantage to this approach is that the client must
support HTTP 1.1 (or HTTP 1.0 with 1.1 extensions) that include the host name
information inside the HTTP document requests. The latest versions of most
browsers support HTTP 1.1 (or HTTP 1.0 with 1.1 extensions), but there are
still old browsers that only support HTTP 1.0. For more information on virtual
hosts refer to the <a href="rzaiemod_core.htm#virtualhost">&lt;VirtualHost&gt;</a> directive. <p>For information
on how to configure a name-based virtual host see <a href="rzaiejklvirtualhost.htm">JKL Toy Company creates virtual hosts on HTTP Server (powered by Apache)</a>. </p>
</dd>
</dl>
<dl><dt class="dlterm">Dynamic virtual host </dt>
<dd>The dynamic virtual host allows you to dynamically add Web sites (host
names) by adding directories of content. This approach is based on automatically
inserting the IP address and the contents of the Host: header into the pathname
of the file that is used to satisfy the request. <p>The advantages of a
dynamic virtual host are: </p>
<ul><li>A smaller configuration file so that the server starts faster and uses
less memory. </li>
<li>Adding virtual hosts does not require the configuration to be changed
or the server to be restarted. </li>
</ul>
<p>The disadvantage of a dynamic virtual host is that you cannot have
a different log file for each virtual host. For more information on dynamic
virtual hosts refer to <a href="rzaiemod_vhost_alias.htm">mod_vhost_alias</a>. </p>
<p>For information
on how to configure dynamic virtual hosts on HTTP Server (powered by Apache)
see <a href="rzaieconfigvirtualhosts.htm">Set up virtual hosts on HTTP Server (powered by Apache)</a>. </p>
</dd>
</dl>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="rzaieconcepts.htm" title="This topic provides concepts of functions on HTTP Server and IBM Web Administration for i5/OS interface.">Concepts of functions of HTTP Server</a></div>
</div>
</div>
</body>
</html>