summaryrefslogtreecommitdiff
path: root/utils/templates
diff options
context:
space:
mode:
authorMarkus Heiser <markus.heiser@darmarit.de>2020-02-04 19:47:33 +0100
committerMarkus Heiser <markus.heiser@darmarit.de>2020-02-04 19:47:33 +0100
commit71d7550dbe750f35f0dd7b5c513bc9e8db9512ee (patch)
tree84fcbd1a82a8f298807cd3490b2acee7b5fcbb64 /utils/templates
parent2f40f61f83afb34f0c4b95019a53050a504ce43a (diff)
downloadsearxng-71d7550dbe750f35f0dd7b5c513bc9e8db9512ee.tar.gz
searxng-71d7550dbe750f35f0dd7b5c513bc9e8db9512ee.zip
tooling box ./utils/*: minor fix from production test
Diffstat (limited to 'utils/templates')
-rw-r--r--utils/templates/etc/apache2/sites-available/morty.conf5
-rw-r--r--utils/templates/etc/apache2/sites-available/searx.conf:filtron9
-rw-r--r--utils/templates/etc/apache2/sites-available/searx.conf:uwsgi2
3 files changed, 16 insertions, 0 deletions
diff --git a/utils/templates/etc/apache2/sites-available/morty.conf b/utils/templates/etc/apache2/sites-available/morty.conf
index 231b3fb79..6bcc77b78 100644
--- a/utils/templates/etc/apache2/sites-available/morty.conf
+++ b/utils/templates/etc/apache2/sites-available/morty.conf
@@ -4,7 +4,12 @@ ProxyPreserveHost On
<Location ${PUBLIC_URL_PATH_MORTY} >
+ <IfModule mod_security2.c>
+ SecRuleEngine Off
+ </IfModule>
+
Require all granted
+
Order deny,allow
Deny from all
#Allow from fd00::/8 192.168.0.0/16 fe80::/10 127.0.0.0/8 ::1
diff --git a/utils/templates/etc/apache2/sites-available/searx.conf:filtron b/utils/templates/etc/apache2/sites-available/searx.conf:filtron
index 11bd70376..3f03dfadd 100644
--- a/utils/templates/etc/apache2/sites-available/searx.conf:filtron
+++ b/utils/templates/etc/apache2/sites-available/searx.conf:filtron
@@ -2,9 +2,18 @@
ProxyPreserveHost On
+# SecRuleRemoveById 981054
+# SecRuleRemoveById 981059
+# SecRuleRemoveById 981060
+
<Location ${FILTRON_URL_PATH} >
+ <IfModule mod_security2.c>
+ SecRuleEngine Off
+ </IfModule>
+
Require all granted
+
Order deny,allow
Deny from all
#Allow from fd00::/8 192.168.0.0/16 fe80::/10 127.0.0.0/8 ::1
diff --git a/utils/templates/etc/apache2/sites-available/searx.conf:uwsgi b/utils/templates/etc/apache2/sites-available/searx.conf:uwsgi
index 51cbdf41f..21e01ac4e 100644
--- a/utils/templates/etc/apache2/sites-available/searx.conf:uwsgi
+++ b/utils/templates/etc/apache2/sites-available/searx.conf:uwsgi
@@ -11,6 +11,8 @@
SecRuleEngine Off
</IfModule>
+ Require all granted
+
Options FollowSymLinks Indexes
SetHandler uwsgi-handler
uWSGISocket ${SEARX_UWSGI_SOCKET}