From cb214c699db7a6b04b5f069d2985a3cbe02f2560 Mon Sep 17 00:00:00 2001
From: Till Brehm <tbrehm@ispconfig.org>
Date: Thu, 26 Mar 2015 08:47:09 -0400
Subject: [PATCH] Fixed a regex in ispconfig and apps vhost for nginx: https://www.howtoforge.com/community/threads/possible-bug-in-a-nginx-regex.68948/
---
install/tpl/nginx_apps.vhost.master | 2 +-
install/tpl/nginx_ispconfig.vhost.master | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/install/tpl/nginx_apps.vhost.master b/install/tpl/nginx_apps.vhost.master
index 2c720b5..57a78bc 100644
--- a/install/tpl/nginx_apps.vhost.master
+++ b/install/tpl/nginx_apps.vhost.master
@@ -12,7 +12,7 @@
}
# serve static files directly
- location ~* ^.+.(jpg|jpeg|gif|css|png|js|ico|html|xml|txt)$ {
+ location ~* ^.+\.(jpg|jpeg|gif|css|png|js|ico|html|xml|txt)$ {
access_log off;
}
diff --git a/install/tpl/nginx_ispconfig.vhost.master b/install/tpl/nginx_ispconfig.vhost.master
index 70d6a53..528ee2c 100644
--- a/install/tpl/nginx_ispconfig.vhost.master
+++ b/install/tpl/nginx_ispconfig.vhost.master
@@ -19,7 +19,7 @@
}
# serve static files directly
- location ~* ^.+.(jpg|jpeg|gif|css|png|js|ico|html|xml|txt)$ {
+ location ~* ^.+\.(jpg|jpeg|gif|css|png|js|ico|html|xml|txt)$ {
access_log off;
}
--
Gitblit v1.9.1