Re: Protect /analytics on Nginx with basic authentication, but allow access to .php and .js files??

2015-02-12 Thread lmm5247
> What actual requests are made that are challenged for > authentication? Check your access_log for http 401. > > At a guess, it is just /analytics/piwik.js that you care about here. > > So: add > > location = /analytics/piwik.js {auth_basic off;} > > inside your "location /analytics {}" bloc

Protect /analytics on Nginx with basic authentication, but allow access to .php and .js files??

2015-02-11 Thread lmm5247
Hey folks, Nginx noob here. I also posted here with no luck yet: http://forum.piwik.org/read.php?2,123492 I have Piwik setup and running on a Nginx webserver that I protected with HTTP basic authentication, as seen below. location /analytics { alias /var/www/piwik/; auth_basic "Restricted"; auth_