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

28 Chapter 3 Managing Websites
Understanding the New Web Service access_log Format
In version 10.3 of Mac OS X Server, the web performance cache does not prevent a
remote client's IP address from being logged in the access_log. The web performance
cache process now adds an HTTP header named “PC-Remote-Addr” that contains the
client's IP address before passing a request to the Apache web server.
With the performance cache disabled, the standard log format string on the
CustomLog directive in httpd.conf remains the same as in earlier versions:
%h %l %u %t "%r" %>s %b
When the performance cache is enabled (default) the “%h” item will extract the local
machine's IP address. To extract the remote client's IP address, the log format string
needs to be modified as follows:
%{PC-Remote-Addr}i %l %u %t "%r" %>s %b
When you use the Server Admin application to enable and disable web performance
cache for each site (virtual host), the CustomLog directive in httpd.conf for each site is
adjusted automatically so your access logs should always contain the correct remote
client address.
Setting Up Directory Listing for a Website
When users specify the URL for a directory, you can display either a default webpage
(such as index.html) or a list of the directory contents. You can display a folder list. To
set up directory listing, you need to enable indexing for the website.
Note: Folder listings are displayed only if no default document is found.
To enable indexing for a website:
1 In Server Admin, click Web in the list for the server you want.
2 Click Settings in the button bar.
3 In the Sites pane, double-click the site in the list.
4 In the Options pane, select Folder Listing.
5 Click Save.
Web service restarts.
LL2350.book Page 28 Friday, August 22, 2003 2:32 PM