Просмотр исходного кода

Fix php-fpm template to allow dynamically generated tracking code (#5212)

Arturo Mantinetti 1 месяц назад
Родитель
Сommit
c28a769f5e
1 измененных файлов с 8 добавлено и 0 удалено
  1. 8 0
      install/deb/templates/web/nginx/php-fpm/mautic.stpl

+ 8 - 0
install/deb/templates/web/nginx/php-fpm/mautic.stpl

@@ -40,6 +40,14 @@ server {
 		# Uncomment to enable naxsi on this location
 		# include /etc/nginx/naxsi.rules
 
+		location = /mtc.js {
+			try_files $uri /index.php$is_args$args;
+		}
+
+		location = /mtracking.gif {
+			try_files $uri /index.php$is_args$args;
+		}
+
 		location ~* ^.+\.(jpeg|jpg|png|gif|bmp|ico|svg|css|js)$ {
 			expires max;
 			fastcgi_hide_header "Set-Cookie";