summaryrefslogtreecommitdiffstats
path: root/Services/apache/sx/httpd.sh
diff options
context:
space:
mode:
Diffstat (limited to 'Services/apache/sx/httpd.sh')
-rw-r--r--Services/apache/sx/httpd.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/Services/apache/sx/httpd.sh b/Services/apache/sx/httpd.sh
index 04f08b4..0220984 100644
--- a/Services/apache/sx/httpd.sh
+++ b/Services/apache/sx/httpd.sh
@@ -1,12 +1,18 @@
#!/bin/bash
export TERM=dumb
+export HTTPDCONF=/etc/httpd/conf.d/sx.conf
# Begin configuration before starting daemonized process
# and start generating host keys
function begin_config {
echo "=> Begin httpd configuration for host $HOSTNAME"
mkdir -p /var/run/httpd
+ if [ -z "$DOCROOT" ]; then
+ echo "===> Changing document root to $DOCROOT"
+ ${DOCROOT=/var/www/html}
+ echo "DocumentRoot \"$DOCROOT\"" >> $HTTPDCONF
+ fi
}
# End configuration process just before starting daemon