diff --git a/request-tracker/templates/RT_SiteConfig.pm.j2 b/request-tracker/templates/RT_SiteConfig.pm.j2
index d40e8560fffbe69740efa193e2880654e1115253..5ade83c5f96945db86d3c55e8dbcd7a7b80d8854 100644
--- a/request-tracker/templates/RT_SiteConfig.pm.j2
+++ b/request-tracker/templates/RT_SiteConfig.pm.j2
@@ -97,3 +97,10 @@ Set($NotifyActor, 1);
 Set($LogoAltText, '{{rt_logotext}}');
 Set($LogoLinkURL, '{{rt_logolinkurl}}');
 #Set($LogoURL, it’s easier to upload this in the web interface);
+
+# should prevent crashing caused by nginx
+# from: https://rt-wiki.bestpractical.com/wiki/FreeBSDInstallGuide
+$SIG{'PIPE'} = sub { 
+	print STDERR "SIGPIPE @_\n";
+};
+