How would I run archive.php as a cron using / localhost for the connection?

Is there something I can adjust in the archive.php file that would specify that it should use for the connection instead of the server’s public IP address? I have most of my Piwik installation secured using htaccess, with only localhost allowed but I am seeing the following error log entries:

2013/08/18 17:35:04 [error] 17374#0: *283735 no user/password was provided for basic authentication, client:, server:, request: "GET /pw/index.php?module=API&method=API.getDefaultMetricTranslations&format=or$

The client IP address ( is listed as my external IP. I know I could just add that IP address into the whitelist rule, but I would prefer it to stay localhost.

I would be very appreciative of any assistance.


It should just work if you set instead of public IP