December 2007
Beginner to intermediate
310 pages
8h 8m
English
You want to have the same content displayed on two of your addresses.
Specify both addresses in the <VirtualHost> directive:
NameVirtualHost 192.168.1.1:80
NameVirtualHost 172.20.30.40:80
<VirtualHost 192.168.1.1:80 172.20.30.40:80>
DocumentRoot /www/vhosts/server
ServerName server.example.com
ServerAlias server
</VirtualHost>This setup is most useful on a machine that has addresses that
are internal to your network, as well as those that are accessible
only from outside your network. If these are the only addresses, you
could use the * notation introduced
in Recipe 4.1.
However, if there are more addresses, this allows you to specify what
content appears on what address.
Read now
Unlock full access