3 # Alias: Webserver mode to use
6 # Here you can choose the mode to run your webserver with. The value "own"
7 # will start an individual Apache process for this site, running as site
8 # user. No root priviledges are required to administer it. The main
9 # Apache redirects request for this site to it via mod_proxy.
11 # The value "none" will not start a webserver nor create a configuration
12 # for the global Apache.
16 if [ ! -z "$CONFIG_WEBSERVER" ]; then echo "$CONFIG_WEBSERVER"; else echo "own"; fi
19 echo "own: Run an own webserver process for this instance"
20 echo "none: Do not run or configure a webserver"
23 # When one configured shared, fallback to own mode
24 if [ "$2" == "own" ] ||
[ "$2" == "shared" ]; then
25 ln -sfn apache-own.conf
$OMD_ROOT/etc
/apache
/mode.conf
26 elif [ "$2" == "shared" ] ; then
27 echo "DEPRECATION WARNING: the shared apache mode has been removed."
29 elif [ "$2" == "none" ] ; then
30 rm -f $OMD_ROOT/etc
/apache
/mode.conf
31 : > $OMD_ROOT/etc
/apache
/mode.conf