mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2026-01-10 17:42:06 +01:00
htaccess autoload
This commit is contained in:
@@ -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()
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user