Mac OS X Server 10.1: Web Server Access Log Shows IP Address of Server, Not of Clients
This document explains why the Web Server access logs may show the server's IP address instead of the clients', and explains how to resolve this.
Products Affected
Mac OS X Server 10.3
Symptom
When reading the access logs, you see the server's IP address instead of the clients'.
Solution
This issue is caused by the Performance Cache. When active, Performance Cache uses port 80 and passes requests to Apache on port 16080, which means that logging remote hosts logs the server's IP address. To turn the cache off, follow these steps:
For more information, see technical documents:
106407: "Mac OS X Server 10: Web Service Uses Ports 80 and 16080 by Default"
107017: "Mac OS X Server 10.2: About the Web Service access_log Format"
When reading the access logs, you see the server's IP address instead of the clients'.
Solution
This issue is caused by the Performance Cache. When active, Performance Cache uses port 80 and passes requests to Apache on port 16080, which means that logging remote hosts logs the server's IP address. To turn the cache off, follow these steps:
- 1. Go to the Web Services configuration in the Server Admin.
2. Click the Sites tab.
3. Select your site, and then click Edit.
4. In the window that appears, deselect the checkbox for Enable Performance Cache.
For more information, see technical documents:
106407: "Mac OS X Server 10: Web Service Uses Ports 80 and 16080 by Default"
107017: "Mac OS X Server 10.2: About the Web Service access_log Format"