Skip to content

Commit 80f5b19

Browse files
committed
Add hestia-event.conf, if the server is running apache2
1 parent f3ea322 commit 80f5b19

File tree

4 files changed

+14
-0
lines changed

4 files changed

+14
-0
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<IfModule mpm_event_module>
2+
<FilesMatch \.php$>
3+
SetHandler "proxy:fcgi://127.0.0.1:9000"
4+
</FilesMatch>
5+
</IfModule>

install/hst-install-debian.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1194,6 +1194,7 @@ if [ "$apache" = 'yes' ]; then
11941194
# Copy configuration files
11951195
cp -f $HESTIA_INSTALL_DIR/apache2/apache2.conf /etc/apache2/
11961196
cp -f $HESTIA_INSTALL_DIR/apache2/status.conf /etc/apache2/mods-enabled/
1197+
cp -f $HESTIA_INSTALL_DIR/apache2/hestia-event.conf /etc/apache2/mods-enabled/
11971198
cp -f $HESTIA_INSTALL_DIR/logrotate/apache2 /etc/logrotate.d/
11981199

11991200
# Enable needed modules

install/hst-install-ubuntu.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1184,6 +1184,7 @@ if [ "$apache" = 'yes' ]; then
11841184
# Copy configuration files
11851185
cp -f $HESTIA_INSTALL_DIR/apache2/apache2.conf /etc/apache2/
11861186
cp -f $HESTIA_INSTALL_DIR/apache2/status.conf /etc/apache2/mods-enabled/
1187+
cp -f $HESTIA_INSTALL_DIR/apache2/hestia-event.conf /etc/apache2/mods-enabled/
11871188
cp -f $HESTIA_INSTALL_DIR/logrotate/apache2 /etc/logrotate.d/
11881189

11891190
# Enable needed modules

install/upgrade/versions/latest.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,3 +70,10 @@ if [ -f "/etc/network/if-pre-up.d/iptables" ];then
7070
rm "/etc/network/if-pre-up.d/iptables"
7171
$BIN/v-update-firewall
7272
fi
73+
74+
# Add hestia-event.conf, if the server is running apache2
75+
if [ "$WEB_SYSTEM" = "apache2" ]; then
76+
if [ ! -e "/etc/apache2/mods-enabled/hestia-event.conf" ]; then
77+
cp -f $HESTIA_INSTALL_DIR/apache2/hestia-event.conf /etc/apache2/mods-enabled/
78+
fi
79+
fi

0 commit comments

Comments
 (0)