Specifications
Web Service Conguration
All folder listings in Web service use Apache’s FancyIndexing directive, which makes
folder listings more readable.
In Server Admin, the Options pane in the Sites pane for each site has a Folder Listing
checkbox. This setting enables folder listings for a specic virtual host by adding a
“+Indexes” ag to Apache’s Options directive for that virtual host. If folder listings are
not explicitly enabled for each site (virtual host), le indexes are not shown.
The site-specic settings do not apply outside the site; therefore, site-specic settings
do not apply to home directories. For users to have folder-indexing capability on their
home directories, you must add suitable directives to Apache’s conguration les.
For a specic user, you add the following directives inside the <IfModule mod_userdir.c>
block in the httpd.conf:
<Directory "/Users/refuser/Sites">
Options Indexes MultiViews
AllowOverride None
Order allow,deny
Allow from all
</Directory>
Default Content
The default content for the user’s Sites folder is an index.html le along with a few
images. This index.html le has text that describes the Personal Web Sharing feature
of Mac OS X client. The user must replace the index.html le with one suited to the
content of his or her Sites folder.
Accessing Web Content
After the home folder is created, the content of the Sites folder in the user’s home
folder is visible when Web service is running. If your server is named example.com
and the user’s short name is refuser, the content of the Sites folder can be accessed at
http://example.com/~refuser.
If the user has multiple short names, one name can also be used after the tilde (~) to
access that same content.
If the user places a content le named foo.html in his or her Sites folder, that le must
be available at http://example.com/~refuser/foo.html.
If the user places multiple content les in his or her Sites folder and cannot change
index.html to include links to those les, the user might benet from the automatic
folder indexing described previously. If the “Enable folder listing” setting is enabled, an
index listing of le names is visible to browsers at http://example.com/~refuser.
56 Chapter 3 Creating and Managing Websites