Welcome! Log In Create A New Profile

Advanced

Piwik conf file

August 19, 2013 05:56PM
I have recently discovered this wonderful includes directive and I am
using it to clean up my server blocks. Doing this has forced me to
evaluate some of my configurations.

I am trying to set up a conf file for Piwik installations and I'm
hoping a second set of of eyes can help:

location /piwik/ {

location /js/ {
allow all;
}

location ~ /js/.*\.php$ {
include /etc/nginx/global-configs/php.conf;
}

location ~ /piwik.php$ {
include /etc/nginx/global-configs/php.conf;
}

return 301 https://server_name$request_uri?;
}

Piwik seems trickier than other applications because certain
components must be available through HTTP sessions or else browsers
give scary warnings or don't load the tracking code, but I want to
force the Piwik dashboard to open in HTTPS.

Any comments appreciated.

Thanks!


Paul

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Piwik conf file

openletter August 19, 2013 05:56PM

Re: Piwik conf file

Francis Daly August 20, 2013 05:46PM

Re: Piwik conf file

openletter August 20, 2013 07:06PM

Re: Piwik conf file

Francis Daly August 21, 2013 02:24PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 153
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready