summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjsdelfino <jsdelfino@13f79535-47bb-0310-9956-ffa450edef68>2010-03-29 06:47:37 +0000
committerjsdelfino <jsdelfino@13f79535-47bb-0310-9956-ffa450edef68>2010-03-29 06:47:37 +0000
commit9fe55e16661a75bd639da1cb1fde70633d88ae37 (patch)
tree4e476c936bb6604ad1c9ff984957641ee5e7d942
parent0a3cd4a1e3659c3feb7a7933f4bc5993d62d3b7f (diff)
Move SCA runtime SSL config from httpd-ssl-conf to server-conf, as it only applies to servers running the SCA runtime.
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@928608 13f79535-47bb-0310-9956-ffa450edef68
-rwxr-xr-xsca-cpp/trunk/modules/http/httpd-ssl-conf5
-rwxr-xr-xsca-cpp/trunk/modules/server/server-conf9
2 files changed, 9 insertions, 5 deletions
diff --git a/sca-cpp/trunk/modules/http/httpd-ssl-conf b/sca-cpp/trunk/modules/http/httpd-ssl-conf
index ef4c0c1a71..c52d1cc9eb 100755
--- a/sca-cpp/trunk/modules/http/httpd-ssl-conf
+++ b/sca-cpp/trunk/modules/http/httpd-ssl-conf
@@ -84,11 +84,6 @@ Require valid-user
</VirtualHost>
-# Configure SCA SSL support
-SCASSLCACertificateFile "$root/conf/ca.crt"
-SCASSLCertificateFile "$root/conf/server.crt"
-SCASSLCertificateKeyFile "$root/conf/server.key"
-
EOF
# Create test users for HTTP basic authentication
diff --git a/sca-cpp/trunk/modules/server/server-conf b/sca-cpp/trunk/modules/server/server-conf
index a31052af7a..ed5ead4cf5 100755
--- a/sca-cpp/trunk/modules/server/server-conf
+++ b/sca-cpp/trunk/modules/server/server-conf
@@ -26,6 +26,15 @@ port=`cat $root/conf/httpd.conf | grep Listen | tail -1 | awk '{ print $2 }'`
ssl=`cat $root/conf/httpd.conf | grep "SSLEngine" | awk '{ print $2 }'`
if [ "$ssl" = "on" ]; then
protocol="https"
+
+cat >>$root/conf/httpd.conf <<EOF
+# Configure SCA SSL support
+SCASSLCACertificateFile "$root/conf/ca.crt"
+SCASSLCertificateFile "$root/conf/server.crt"
+SCASSLCertificateKeyFile "$root/conf/server.key"
+
+EOF
+
else
protocol="http"
fi