Q: Access Log reports all visitors as from 127.0.0.1
Even Googlebot and Bingbot has the IP address 127.0.0.1 in Apache Access Log
Does anyone know how to fix this problem, which occurs in both OS X Server 5.0.3 and 5.0.4 after updating from 5.0.2?
Mac mini, OS X Server, 5.0.4 (Build 15S2259)
Posted on Sep 25, 2015 10:54 AM
This may be an oversight. Please be sure to file a bug report so Apple can fix this. In the mean time...
You need to open up your custom sites conf files in /Library/Server/Web/Config/apache2/sites/ and change this line:
CustomLog /var/log/apache2/access_log combinedvhost
to:
CustomLog /var/log/apache2/access_log combinedvhostproxy
Keep in mind your custom sites conf files is generated by the Server app and can/will be overwritten whenever you change the web sites' settings.
You can look at service_proxy_access.log instead if you don't want to muck around with conf files.
Posted on Sep 27, 2015 10:18 PM