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 29
Creating Indexes for Searching Website Content
Version 10.3 of Mac OS X Server continues to support the mod_sherlock_apple Apache
module, which allows web browsers to search the content of your website. As in
previous versions of the server, you must produce a content index before content
searching is possible.
Content indexes in earlier server versions had to be created in Sherlock. Now, you can
create content indexes using the Finder. Select the folder containing the files you want
to index, then choose File > GetInfo. Click Content Index, then click Index Now. (You
can remove an index by using the Delete Index button in the Info window.)
In addition, there are new constraints that restrict the creation of index files. To create
an index, you must be the owner of the folder and must own any files in that folder
that are to be indexed. In the case of content in the /Library/WebServer/Documents
folder, the folder and all the files within it are owned by root. Even though the folder
and files are writable by members of the admin group, you must still be logged in as
root to create a content index.
Creating an index remotely or on a headless server is done using a command-line tool
named indexfolder. See the man pages for usage details. The operation of indexfolder
is affected by the login window. If nobody is logged in at the login window, the tool
must be run as root. If an administrator is logged in at the login window, the tool must
be run as that administrator. Otherwise, the tool will fail with messages similar to these:
kCGErrorIllegalArgument : initCGDisplayState: cannot map display interlocks.
kCGErrorIllegalArgument : CGSNewConnection cannot get connection port.
Whether done from the Finder or the indexfolder tool, content indexing creates a
folder named “.FBCIndex” either in the folder to be indexed or in one of its parent
folders.
Connecting to Your Website
Once you configure your website, it’s a good idea to view the site with a web browser
to verify that everything appears as intended.
To make sure a website is working properly:
1 Open a web browser and type the web address of your server.
You can use either the IP address or the DNS name of the server.
2 Type the port number, if you are not using the default port.
3 If you’ve restricted access to specific users, enter a valid user name and password.
LL2350.book Page 29 Friday, August 22, 2003 2:32 PM