User manual
Table Of Contents
- Web Technologies Administration
- Contents
- Web Technologies Overview
- Managing Web Technologies
- Managing Websites
- Using Server Admin to Manage Websites
- Changing the Access Port for a Website
- Improving Performance of Static Websites (PerformanceCache)
- Enabling Access and Error Logs for a Website
- Setting Up Directory Listing for a Website
- Connecting to Your Website
- Enabling WebDAV on Websites
- Enabling a Common Gateway Interface (CGI) Script
- Enabling Server Side Includes (SSI)
- Viewing Website Settings
- Setting Server Responses to MIME Types and ContentHandlers
- Enabling SSL
- Enabling PHP
- User Content on Websites
- WebMail
- Secure Sockets Layer (SSL)
- Working With Open-Source Applications
- Installing and Viewing WebModules
- Solving Problems
- Where to Find More Information
- Glossary
- Index

Chapter 3 Managing Websites 37
Web Service Configuration
By default, on Mac OS X Server:
• Web service ignores any files in the /etc/httpd/users/ folder.
• Workgroup Manager does not make any web service configuration changes.
• Folder listings are not enabled for users.
All folder listings in web service use Apache's FancyIndexing directive, which makes
folder listings more readable. In Server Admin, the Sites/Options pane for each site has
a Folder Listing checkbox. This setting enables folder listings for a specific virtual host
by adding a “+Indexes” flag to Apache's Options directive for that virtual host. If folder
listings are not explicitly enabled for each site (virtual host), file indexes are not shown.
The site-specific settings do not apply outside the site; therefore site-specific settings
do not apply to users' home directories. If you want users to have folder-indexing
capability on their home directories, you need to add suitable directives to Apache's
configuration files. For a specific user, you add the following directives inside the
<IfModule mod_userdir.c> block in the httpd.conf file:
<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 file along with a few
images. It is important to note that this index.html file has text that describes the
Personal Web Sharing feature of Mac OS X client. The user should replace that
index.html file with one suited to the content of his or her Sites folder.
Accessing Web Content
Once the home directory is created, the content of the Sites folder within the user's
home directory is visible whenever 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 the URL http://example.com/~refuser.
If the user has multiple short names, any of those can also be used after the tilde to
access that same content.
If the user has placed a content file named foo.html in his or her Sites folder, that file
should be available at http://example.com/~refuser/foo.html.
LL2350.book Page 37 Friday, August 22, 2003 2:32 PM