summaryrefslogtreecommitdiff
path: root/docs/manual/vhosts/index.html.en
blob: 9a569028cf848317e4f444d580456dac8beb5df7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<HTML>
<HEAD>
<TITLE>Apache Virtual Host documentation</TITLE>
</HEAD>

<!-- Background white, links blue (unvisited), navy (visited), red (active) -->
<BODY
 BGCOLOR="#FFFFFF"
 TEXT="#000000"
 LINK="#0000FF"
 VLINK="#000080"
 ALINK="#FF0000"
>
<!--#include virtual="header.html" -->
<H1 ALIGN="CENTER">Apache Virtual Host documentation</H1>

<P>The term <CITE>Virtual Host</CITE> refers to the practice of maintaining
more than one server on one machine, as differentiated by their apparent
hostname. For example, it is often desirable for companies sharing a
web server to have their own domains, with web servers accessible as
<SAMP>www.company1.com</SAMP> and <SAMP>www.company2.com</SAMP>,
without requiring the user to know any extra path information.</P>

<P>Apache was one of the first servers to support IP-based
virtual hosts right out of the box. Versions 1.1 and later of
Apache support both, IP-based and name-based virtual hosts (vhosts).
The latter variant of virtual hosts is sometimes also called host-based or
non-IP virtual hosts.</P>

<P>Below is a list of documentation pages which explain all details
of virtual host support in Apache version 1.3 and later.</P>

<HR>

<H2>Virtual Host Support</H2>

<UL>
<LI><A HREF="ip-based.html">IP-based Virtual Hosts</A>
<LI><A HREF="name-based.html">Name-based Virtual Hosts</A>
<LI><A HREF="examples.html">Virtual Host examples for common setups</A>
<LI><A HREF="details.html">In-Depth Discussion of Virtual Host Matching</A>
<LI><A HREF="fd-limits.html">File Descriptor Limits</A>
<LI><A HREF="mass.html">Dynamically Configured Mass Virtual Hosting with mod_rewrite</A>
</UL>

<H2>Configuration directives</H2>

<UL>
<LI><A HREF="../mod/core.html#virtualhost">&lt;VirtualHost&gt;</A>
<LI><A HREF="../mod/core.html#namevirtualhost">NameVirtualHost</A>
<LI><A HREF="../mod/core.html#servername">ServerName</A>
<LI><A HREF="../mod/core.html#serveralias">ServerAlias</A>
<LI><A HREF="../mod/core.html#serverpath">ServerPath</A>
</UL>

<P>Folks trying to debug their virtual host configuration may find the
Apache <CODE>-S</CODE> command line switch useful.  It will dump out a
description of how Apache parsed the configuration file.  Careful
examination of the IP addresses and server names may help uncover
configuration mistakes.

<!--#include virtual="footer.html" -->
</BODY>
</HTML>