Skip to content

Commit c54f436

Browse files
author
d3llf
committed
Gentoo specific Apache corrections
1 parent f50a336 commit c54f436

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

stack.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1179,9 +1179,11 @@ if is_service_enabled horizon; then
11791179
elif [[ "$os_PACKAGE" = "ebuild" ]]; then
11801180
APACHE_NAME=apache2
11811181
APACHE_CONF=vhosts.d/horizon.conf
1182-
# Disable default config
1183-
sudo rm -f /etc/apache2/vhosts.d/*default_*vhost.*
11841182
sudo touch /etc/$APACHE_NAME/$APACHE_CONF
1183+
# Enable WSGI for Apache if it's not enabled.
1184+
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+
11851187
fi
11861188

11871189
# Configure apache to run horizon

0 commit comments

Comments
 (0)