Skip to content

Commit 492eedc

Browse files
committed
merge HeatmapSessionRecording with main section
thanks to @J0WI (#52)
1 parent f797512 commit 492eedc

1 file changed

Lines changed: 2 additions & 10 deletions

File tree

sites-available/matomo.conf

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -31,19 +31,11 @@ server {
3131
index index.php;
3232

3333
## only allow accessing the following php files
34-
location ~ ^/(index|matomo|piwik|js/index).php {
34+
location ~ ^/(index|matomo|piwik|js/index|plugins/HeatmapSessionRecording/configs.php).php {
3535
include snippets/fastcgi-php.conf; # if your Nginx setup doesn't come with a default fastcgi-php config, you can fetch it from https://github.com/nginx/nginx/blob/master/conf/fastcgi.conf
3636
fastcgi_param HTTP_PROXY ""; # prohibit httpoxy: https://httpoxy.org/
3737
fastcgi_pass unix:/var/run/php/php7.2-fpm.sock; #replace with the path to your PHP socket file
38-
#fastcgi_pass 127.0.0.1:9000; # uncomment if you are using PHP via TCP sockets
39-
}
40-
41-
## needed for HeatmapSessionRecording plugin
42-
location = /plugins/HeatmapSessionRecording/configs.php {
43-
include snippets/fastcgi-php.conf;
44-
fastcgi_param HTTP_PROXY "";
45-
fastcgi_pass unix:/var/run/php/php7.2-fpm.sock; #replace with the path to your PHP socket file
46-
#fastcgi_pass 127.0.0.1:9000; # uncomment if you are using PHP via TCP sockets
38+
#fastcgi_pass 127.0.0.1:9000; # uncomment if you are using PHP via TCP sockets (e.g. Docker conatiner)
4739
}
4840

4941
## deny access to all other .php files

0 commit comments

Comments
 (0)