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 "shared" will not start an own Apache process but will configure
12 # the system wide Apache to be used.
14 # The value "none" will not start a webserver nor create a configuration
15 # for the global Apache.
19 if [ ! -z "$CONFIG_WEBSERVER" ]; then echo "$CONFIG_WEBSERVER"; else echo "own"; fi
22 echo "own: Run an own webserver process for this instance"
23 echo "shared: Use the systems webserver process directly"
24 echo "none: Do not run or configure a webserver"
27 if [ "$2" == "own" ]; then
28 ln -sfn apache-own.conf
$OMD_ROOT/etc
/apache
/mode.conf
29 elif [ "$2" == "shared" ]; then
30 ln -sfn apache-shared.conf
$OMD_ROOT/etc
/apache
/mode.conf
31 elif [ "$2" == "none" ] ; then
32 rm -f $OMD_ROOT/etc
/apache
/mode.conf
33 : > $OMD_ROOT/etc
/apache
/mode.conf