Specifications
Chapter 3 Creating and Managing Websites 55
Using Aliases to Have a Site Respond to Multiple Names
If you want a website to respond to multiple names, choose one name as the primary
and add the other names as aliases.
To set up a website this way, use the primary name as the site name in Server Admin
(by clicking the site and entering the primary host name in the General pane for the
site, then adding the other names in the Aliases pane for that site). For the procedure,
see “Managing Access to Sites Using Aliases” on page 43.
For example, if you want your website to respond to example.com, www.example.com,
and widget.example.com, you could set it up as follows (the names and IP addresses
are examples only):
 Primary name: www.example.com (entered in the Host name eld in the General
pane for the site)
 Secondary names: example.com and widget.example.com (entered in the Web
Server Aliases list for the site)
Make sure your DNS server aliases your web server address to all three domain names.
Websites and Multiple Network Interfaces
By default, the web server is congured with a single wildcard website or virtual host.
Such a website is useful for these reasons:
It responds on all network interfaces and on all IP addresses on all those interfaces. Â
It responds to the DNS name that maps to one of those addresses. Â
You can add other websites using the Sites pane in Server Admin. When websites are
added, the administrator can associate a specic IP address or a wildcard address with
each website.
If the web server has multiple interfaces and multiple addresses, conguring Apache
to use them is a matter of conguring websites to use the specied addresses. An
even simpler scenario is to let the wildcard website respond to all addresses, which it
does by default.
User Content on Websites
Mac OS X client has a Web Sharing feature, which allows a user to place content in
the Sites folder of his or her home folder and have it visible on the web. Mac OS X
Server also has a much broader web service capability, which can include a form of
personal web sharing, but there are important dierences between Mac OS X client
and Mac OS X Server.