Cron getting 403 Forbidden


#1

Hey guys,

I’m having an issue where my auto archive cron runs it’s getting 403 Forbidden errors but if I run it manually via the shell it works fine.

Running from cron gets this in the access log:


x.x.x.x - - [14/Apr/2014:04:34:00 -0400] "GET /index.php?module=API&method=API.getDefaultMetricTranslations&format=original&serialize=1&trigger=archivephp HTTP/1.1" 403 211 "-" "Piwik/2.1.0"


#2

Here’s my .htaccess (minus the IPs)


Options +FollowSymLinks -Indexes
RewriteEngine On

#Allow IP's access
RewriteCond %{REQUEST_FILENAME} !piwik\.(js|php)$
#RewriteCond %{REQUEST_URI} !\.(js|)$
#RewriteCond %{REMOTE_ADDR} !^127\.0\.0\.1 [OR]
RewriteCond %{REMOTE_ADDR} !^x\.x\.x\.y [OR]
RewriteCond %{REMOTE_ADDR} !^x\.x\.x\.z
RewriteCond %{HTTP:X-FORWARDED-FOR} !^(x\.x\.x\.x|x\.x\.x\.x|x\.x\.x\.x|127\.0\.0\.1|x\.x\.x\.y|x\.x\.x\.z)$
RewriteRule .* - [F]