summaryrefslogtreecommitdiffstats
path: root/Services/apache
diff options
context:
space:
mode:
Diffstat (limited to 'Services/apache')
-rw-r--r--Services/apache/README.md5
-rw-r--r--Services/apache/sx/httpd.sh6
2 files changed, 9 insertions, 2 deletions
diff --git a/Services/apache/README.md b/Services/apache/README.md
index b42fdd0..d775b03 100644
--- a/Services/apache/README.md
+++ b/Services/apache/README.md
@@ -1,5 +1,6 @@
-# STARTX Services docker-images : PHP Webserver
-This container run apache on fedora server.
+# STARTX Services docker-images : Simple Webserver
+
+Container running httpd daemon under a fedora server
## Running from docker registry
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