We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f50a336 commit c54f436Copy full SHA for c54f436
1 file changed
stack.sh
@@ -1179,9 +1179,11 @@ if is_service_enabled horizon; then
1179
elif [[ "$os_PACKAGE" = "ebuild" ]]; then
1180
APACHE_NAME=apache2
1181
APACHE_CONF=vhosts.d/horizon.conf
1182
- # Disable default config
1183
- sudo rm -f /etc/apache2/vhosts.d/*default_*vhost.*
1184
sudo touch /etc/$APACHE_NAME/$APACHE_CONF
+ # Enable WSGI for Apache if it's not enabled.
+ grep -E "^APACHE2_OPTS=\".*-D WSGI.*$" /etc/conf.d/apache2 ||
1185
+ sed -i 's/APACHE2_OPTS="/APACHE2_OPTS="-D WSGI /g' /etc/conf.d/apache2
1186
+
1187
fi
1188
1189
# Configure apache to run horizon
0 commit comments