From 5fded151f85f1adf45f5ed22af53cb5f9ddd3d3f Mon Sep 17 00:00:00 2001 From: usmannasir <01-134132-158@student.bahria.edu.pk> Date: Mon, 10 Sep 2018 12:18:24 +0500 Subject: [PATCH] htaccess autoload --- plogical/vhost.py | 34 ++++++++++------------------------ requirments.txt | 1 + 2 files changed, 11 insertions(+), 24 deletions(-) diff --git a/plogical/vhost.py b/plogical/vhost.py index 64727ca66..6601d28e3 100644 --- a/plogical/vhost.py +++ b/plogical/vhost.py @@ -367,20 +367,13 @@ class vhost: confFile.writelines(endPHPIniOverride) - slashContext = """ -context / { - location $DOC_ROOT/ - allowBrowse 1 - - rewrite { - enable 1 -RewriteFile .htaccess - - } - addDefaultCharset off + htaccessAutoLoad = """ +rewrite { + enable 1 + autoLoadHtaccess 1 } """ - confFile.write(slashContext) + confFile.write(htaccessAutoLoad) confFile.close() @@ -945,20 +938,13 @@ RewriteFile .htaccess confFile.writelines(procHardLimit) confFile.writelines(extprocessorEnd) - slashContext = """ -context / { - location $DOC_ROOT/ - allowBrowse 1 - - rewrite { - enable 1 -RewriteFile .htaccess - - } - addDefaultCharset off + htaccessAutoLoad = """ +rewrite { + enable 1 + autoLoadHtaccess 1 } """ - confFile.write(slashContext) + confFile.write(htaccessAutoLoad) confFile.close() diff --git a/requirments.txt b/requirments.txt index cacd75630..b55a1d8cf 100644 --- a/requirments.txt +++ b/requirments.txt @@ -52,3 +52,4 @@ urllib3==1.22 zope.component==4.4.1 zope.event==4.3.0 zope.interface==4.5.0 +libvirt-python==4.6.0