Просмотр исходного кода

Add hestia-event.conf, if the server is running apache2

Raphael Schneeberger 5 лет назад
Родитель
Сommit
80f5b1917f

+ 5 - 0
install/deb/apache2/hestia-event.conf

@@ -0,0 +1,5 @@
+<IfModule mpm_event_module>
+    <FilesMatch \.php$>
+        SetHandler "proxy:fcgi://127.0.0.1:9000"
+    </FilesMatch>
+</IfModule>

+ 1 - 0
install/hst-install-debian.sh

@@ -1194,6 +1194,7 @@ if [ "$apache" = 'yes' ]; then
     # Copy configuration files
     cp -f $HESTIA_INSTALL_DIR/apache2/apache2.conf /etc/apache2/
     cp -f $HESTIA_INSTALL_DIR/apache2/status.conf /etc/apache2/mods-enabled/
+    cp -f $HESTIA_INSTALL_DIR/apache2/hestia-event.conf /etc/apache2/mods-enabled/
     cp -f $HESTIA_INSTALL_DIR/logrotate/apache2 /etc/logrotate.d/
     
     # Enable needed modules

+ 1 - 0
install/hst-install-ubuntu.sh

@@ -1184,6 +1184,7 @@ if [ "$apache" = 'yes' ]; then
     # Copy configuration files
     cp -f $HESTIA_INSTALL_DIR/apache2/apache2.conf /etc/apache2/
     cp -f $HESTIA_INSTALL_DIR/apache2/status.conf /etc/apache2/mods-enabled/
+    cp -f $HESTIA_INSTALL_DIR/apache2/hestia-event.conf /etc/apache2/mods-enabled/
     cp -f $HESTIA_INSTALL_DIR/logrotate/apache2 /etc/logrotate.d/
     
     # Enable needed modules

+ 7 - 0
install/upgrade/versions/latest.sh

@@ -70,3 +70,10 @@ if [ -f "/etc/network/if-pre-up.d/iptables" ];then
     rm "/etc/network/if-pre-up.d/iptables"
     $BIN/v-update-firewall
 fi
+
+# Add hestia-event.conf, if the server is running apache2
+if [ "$WEB_SYSTEM" = "apache2" ]; then
+    if [ ! -e "/etc/apache2/mods-enabled/hestia-event.conf" ]; then
+        cp -f $HESTIA_INSTALL_DIR/apache2/hestia-event.conf /etc/apache2/mods-enabled/
+    fi
+fi