summaryrefslogtreecommitdiffstats
path: root/sca-cpp/trunk/hosting/server/start
diff options
context:
space:
mode:
Diffstat (limited to 'sca-cpp/trunk/hosting/server/start')
-rwxr-xr-xsca-cpp/trunk/hosting/server/start25
1 files changed, 14 insertions, 11 deletions
diff --git a/sca-cpp/trunk/hosting/server/start b/sca-cpp/trunk/hosting/server/start
index 5675e851f8..d4443cb250 100755
--- a/sca-cpp/trunk/hosting/server/start
+++ b/sca-cpp/trunk/hosting/server/start
@@ -22,7 +22,6 @@
# 127.0.0.1 www.example.com
here=`echo "import os; print os.path.realpath('$0')" | python`; here=`dirname $here`
-jsprefix=`echo "import os; print os.path.realpath('$here/../../modules/js')" | python`
host=`hostname`
# Configure and start logging
@@ -37,9 +36,15 @@ fi
../../components/cache/memcached-start tmp 11211
../../components/cache/memcached-start tmp 11212
+# Clear document cache
+rm -rf tmp/cache
+
# Configure server
../../modules/http/httpd-conf tmp www.example.com 8090 htdocs
+../../modules/http/alt-host-conf tmp ww1.example.com
+../../modules/http/alt-host-conf tmp ww2.example.com
../../modules/http/httpd-event-conf tmp
+#../../modules/http/cache-conf tmp
# Configure Python component support
../../modules/server/server-conf tmp
@@ -64,6 +69,7 @@ CustomLog $here/tmp/logs/access_log combined
EOF
fi
+#../../modules/http/httpd-loglevel-conf tmp debug
# Configure error pages
cat >>tmp/conf/svhost.conf <<EOF
@@ -72,8 +78,11 @@ cat >>tmp/conf/svhost.conf <<EOF
ErrorDocument 404 /public/notfound/
ErrorDocument 401 /public/notauth/
ErrorDocument 403 /public/notauth/
-ErrorDocument 500 /public/oops/
+ErrorDocument 400 /public/oops/
ErrorDocument 405 /public/oops/
+ErrorDocument 500 /public/oops/
+ErrorDocument 502 /public/oops/
+ErrorDocument 503 /public/oops/
EOF
@@ -89,6 +98,9 @@ SCAComposite server.composite
#SCAVirtualComposite app.composite
SCAVirtualContributor Composites
+# Configure SCA wiring timeout
+SCAWiringTimeout 10
+
EOF
# Configure resource aliases
@@ -101,14 +113,6 @@ Alias /proxy/public/config-min.js $here/public/config-min.js
EOF
-# Create app implementation resource links
-if [ ! -e "nuvem" ]; then
- ln -s "../../../nuvem/nuvem-parallel/nuvem" "nuvem"
-fi
-if [ ! -e "lib" ]; then
- ln -s "../../components" "lib"
-fi
-
# Configure app resource aliases
cat >>tmp/conf/svhost.conf <<EOF
# Generated by: start $*
@@ -118,6 +122,5 @@ AliasMatch /v/([^/]+)(.*)$ $here/htdocs/app\$2
EOF
# Start server
-#../../modules/http/httpd-loglevel-conf tmp debug
../../modules/http/httpd-start tmp