From 9bfdb56f678d5fd7b2f0b16994f4cc6dd2e24ff6 Mon Sep 17 00:00:00 2001 From: "usman@cyberpersons.com" Date: Tue, 16 May 2023 15:24:26 +0500 Subject: [PATCH] apache as proxy --- ApachController/ApacheController.py | 5 +++++ .../templates/websiteFunctions/createDomain.html | 2 +- .../templates/websiteFunctions/createWebsite.html | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/ApachController/ApacheController.py b/ApachController/ApacheController.py index c5c97be64..b35036890 100755 --- a/ApachController/ApacheController.py +++ b/ApachController/ApacheController.py @@ -183,6 +183,11 @@ LoadModule mpm_event_module modules/mod_mpm_event.so if ProcessUtilities.executioner(command, None, True) == 0: return "Apache run suexec proxy ssl" + + WriteToFile = open(confPath, 'a') + WriteToFile.writelines('\nSetEnv LSWS_EDITION Openlitespeed\nSetEnv X-LSCACHE on\n') + WriteToFile.close() + ### if ProcessUtilities.decideDistro() == ProcessUtilities.centos or ProcessUtilities.decideDistro() == ProcessUtilities.cent8: diff --git a/websiteFunctions/templates/websiteFunctions/createDomain.html b/websiteFunctions/templates/websiteFunctions/createDomain.html index a67e6fbce..cd1db2046 100755 --- a/websiteFunctions/templates/websiteFunctions/createDomain.html +++ b/websiteFunctions/templates/websiteFunctions/createDomain.html @@ -269,7 +269,7 @@
diff --git a/websiteFunctions/templates/websiteFunctions/createWebsite.html b/websiteFunctions/templates/websiteFunctions/createWebsite.html index a37bce9a3..5eac16d5d 100755 --- a/websiteFunctions/templates/websiteFunctions/createWebsite.html +++ b/websiteFunctions/templates/websiteFunctions/createWebsite.html @@ -258,7 +258,7 @@