Closed (fixed)
Project:
Piwik Web Analytics
Version:
6.x-1.1
Component:
Miscellaneous
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
8 Nov 2009 at 15:46 UTC
Updated:
18 Jan 2010 at 09:55 UTC
Hi,
I installed piwik, now I'd like to enter my data into the drupal module piwik.
Therefore I have the line "Piwik HTTP-URL" to fill out. The URL to Piwik is behind a htaccess file so I get the error "Fehler „Authorization Required“ fehlgeschlagen (HTTP-Code 401)."
Hmm any hints? However I need the htaccess file.... Many thanks
I postet this post also on the piwik forum page. I will add the result to this side as well then. wasnt shure if its a piwik or drupal problem.
Comments
Comment #1
hass commentedRemove this buggy rule, please.
Comment #2
susi_333 commentedI wrote with Alexander and here is a short result:
piwik doesnt work if there is a htaccess file which will protect the whole piwik folder. how to make the piwik data safe? i doent know.
maybe you have to adopt the htaccess file. i wouldnt use piwik as long there is no htaccess. in case someone finds a tuturial about how piwik can be made safe, please write me.
many thanks.
Comment #3
hass commentedIf you *block* the piwik module from accessing it's own tracker files (piwik.php, piwik.js) - piwik is not able to track anything!
You may be able to protect the subfolders with .htacces, but I cannot say if this will work well, but it may be possible to block from all other files except the tracker URLs. Untested - maybe the piwik core maintainers know...
Comment #5
andrewsuth commented.. then why not just add an .htaccess file that only allows those two files?
Also, as far as I can tell, the file piwik.php is not accessed directly by the user anyway. In that case, you can add another restriction which says: only allow 127.0.0.1/localhost/(your server IP) to access piwik.php without authentication.
Comment #6
hass commentedWithout piwik.php nothing can be tracked... It's called from the js code
Comment #7
andrewsuth commentedThat makes sense.
I just couldn't see
piwik.phpthe file being calling in my network requests. In that case, just use the.htaccessI posted above. Should work.