Novell LINUX ENTERPRISE SERVER 10 - INSTALLATION AND ADMINISTRATION 11-05-2007 Installation Manual page 763

Table of Contents

Advertisement

Example 40.2 Name-Based VirtualHost Directives
<VirtualHost 192.168.1.100:80>
...
</VirtualHost>
<VirtualHost 192.168.1.100>
...
</VirtualHost>
<VirtualHost *:80>
...
</VirtualHost>
<VirtualHost *>
...
</VirtualHost>
<VirtualHost [2002:c0a8:164::]>
...
</VirtualHost>
IP-Based Virtual Hosts
This alternative virtual host configuration requires the setup of multiple IPs for a ma-
chine. One instance of Apache hosts several domains, each of which is assigned a dif-
ferent IP.
The physical server must have one IP address for each IP-based virtual host. If the
machine does not have multiple network cards, virtual network interfaces (IP aliasing)
can also be used.
The following example shows Apache running on a machine with the IP
192.168.0.10, hosting two domains on the additional IPs 192.168.0.20 and
192.168.0.30. A separate VirtualHost block is needed for every virtual server.
The Apache HTTP Server
745

Advertisement

Table of Contents
loading

This manual is also suitable for:

Suse linux enterprise server 10

Table of Contents