From ec39961fa92cf9d2882ec61fd525b24a00b0e205 Mon Sep 17 00:00:00 2001 From: jsdelfino Date: Sat, 26 Feb 2011 20:59:49 +0000 Subject: Move virtual host htdocs under their corresponding virtual host contribution directory. git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1074925 13f79535-47bb-0310-9956-ffa450edef68 --- sca-cpp/trunk/modules/http/vhost-conf | 14 +- sca-cpp/trunk/modules/http/vhost-ssl-conf | 13 +- sca-cpp/trunk/samples/store-cluster/Makefile.am | 2 +- .../store-cluster/domains/jane/htdocs/index.html | 154 ++++++++++++++++ .../domains/jane/htdocs/login/index.html | 205 +++++++++++++++++++++ .../domains/jane/htdocs/logout/index.html | 43 +++++ .../store-cluster/domains/joe/htdocs/index.html | 154 ++++++++++++++++ .../domains/joe/htdocs/login/index.html | 205 +++++++++++++++++++++ .../domains/joe/htdocs/logout/index.html | 42 +++++ .../store-cluster/htdocs/domains/jane/index.html | 154 ---------------- .../htdocs/domains/jane/login/index.html | 205 --------------------- .../htdocs/domains/jane/logout/index.html | 43 ----- .../store-cluster/htdocs/domains/joe/index.html | 154 ---------------- .../htdocs/domains/joe/login/index.html | 205 --------------------- .../htdocs/domains/joe/logout/index.html | 42 ----- sca-cpp/trunk/samples/store-cluster/proxy-conf | 2 +- sca-cpp/trunk/samples/store-cluster/proxy-ssl-conf | 2 +- sca-cpp/trunk/samples/store-cluster/server-conf | 2 +- .../trunk/samples/store-cluster/server-ssl-conf | 2 +- sca-cpp/trunk/samples/store-vhost/Makefile.am | 2 +- .../store-vhost/domains/jane/htdocs/index.html | 154 ++++++++++++++++ .../store-vhost/domains/joe/htdocs/index.html | 154 ++++++++++++++++ .../store-vhost/htdocs/domains/jane/index.html | 154 ---------------- .../store-vhost/htdocs/domains/joe/index.html | 154 ---------------- sca-cpp/trunk/samples/store-vhost/ssl-start | 2 +- sca-cpp/trunk/samples/store-vhost/start | 2 +- sca-cpp/trunk/samples/store-vhost/uec2-start | 2 +- 27 files changed, 1137 insertions(+), 1130 deletions(-) create mode 100644 sca-cpp/trunk/samples/store-cluster/domains/jane/htdocs/index.html create mode 100644 sca-cpp/trunk/samples/store-cluster/domains/jane/htdocs/login/index.html create mode 100644 sca-cpp/trunk/samples/store-cluster/domains/jane/htdocs/logout/index.html create mode 100644 sca-cpp/trunk/samples/store-cluster/domains/joe/htdocs/index.html create mode 100644 sca-cpp/trunk/samples/store-cluster/domains/joe/htdocs/login/index.html create mode 100644 sca-cpp/trunk/samples/store-cluster/domains/joe/htdocs/logout/index.html delete mode 100644 sca-cpp/trunk/samples/store-cluster/htdocs/domains/jane/index.html delete mode 100644 sca-cpp/trunk/samples/store-cluster/htdocs/domains/jane/login/index.html delete mode 100644 sca-cpp/trunk/samples/store-cluster/htdocs/domains/jane/logout/index.html delete mode 100644 sca-cpp/trunk/samples/store-cluster/htdocs/domains/joe/index.html delete mode 100644 sca-cpp/trunk/samples/store-cluster/htdocs/domains/joe/login/index.html delete mode 100644 sca-cpp/trunk/samples/store-cluster/htdocs/domains/joe/logout/index.html create mode 100644 sca-cpp/trunk/samples/store-vhost/domains/jane/htdocs/index.html create mode 100644 sca-cpp/trunk/samples/store-vhost/domains/joe/htdocs/index.html delete mode 100644 sca-cpp/trunk/samples/store-vhost/htdocs/domains/jane/index.html delete mode 100644 sca-cpp/trunk/samples/store-vhost/htdocs/domains/joe/index.html (limited to 'sca-cpp/trunk') diff --git a/sca-cpp/trunk/modules/http/vhost-conf b/sca-cpp/trunk/modules/http/vhost-conf index f45d448906..a36b195844 100755 --- a/sca-cpp/trunk/modules/http/vhost-conf +++ b/sca-cpp/trunk/modules/http/vhost-conf @@ -22,6 +22,9 @@ here=`readlink -f $0`; here=`dirname $here` mkdir -p $1 root=`readlink -f $1` +vroot=`readlink -f $2` +vhtdocs=$3 + conf=`cat $root/conf/httpd.conf | grep "# Generated by: httpd-conf"` host=`echo $conf | awk '{ print $6 }'` addr=`echo $conf | awk '{ print $7 }'` @@ -41,24 +44,17 @@ NameVirtualHost $vhost ServerName http://vhost.$host:$pport ServerAlias *.$host -VirtualDocumentRoot $htdocs/domains/%1/ +VirtualDocumentRoot $vroot/%1/$vhtdocs/ Include conf/dvhost.conf # Allow access to document root - + Options FollowSymLinks AuthType None Require all granted -# Allow access to root location - -Options FollowSymLinks -AuthType None -Require all granted - - EOF diff --git a/sca-cpp/trunk/modules/http/vhost-ssl-conf b/sca-cpp/trunk/modules/http/vhost-ssl-conf index 36b2a15412..314773a338 100755 --- a/sca-cpp/trunk/modules/http/vhost-ssl-conf +++ b/sca-cpp/trunk/modules/http/vhost-ssl-conf @@ -31,6 +31,10 @@ sslport=`$here/httpd-addr port $ssladdr` sslpport=`$here/httpd-addr pport $ssladdr` sslvhost=`$here/httpd-addr vhost $ssladdr` +vhostconf=`cat $root/conf/httpd.conf | grep "# Generated by: vhost-conf"` +vroot=`echo $vhostconf | awk '{ print $6 }'`; vroot=`readlink -f $vroot` +vhtdocs=`echo $vhostconf | awk '{ print $7 }'` + htdocs=`echo $conf | awk '{ print $8 }'` mkdir -p $htdocs htdocs=`readlink -f $htdocs` @@ -45,9 +49,16 @@ NameVirtualHost $sslvhost ServerName https://vhost.$host:$sslpport ServerAlias *.$host -VirtualDocumentRoot $htdocs/domains/%1/ +VirtualDocumentRoot $vroot/%1/$vhtdocs/ Include conf/dvhost-ssl.conf +# Allow access to document root + +Options FollowSymLinks +AuthType None +Require all granted + + diff --git a/sca-cpp/trunk/samples/store-cluster/Makefile.am b/sca-cpp/trunk/samples/store-cluster/Makefile.am index e9aab86f10..f856e63c59 100644 --- a/sca-cpp/trunk/samples/store-cluster/Makefile.am +++ b/sca-cpp/trunk/samples/store-cluster/Makefile.am @@ -24,7 +24,7 @@ if WANT_QUEUE dist_sample_SCRIPTS = start stop ssl-start ssl-stop proxy-conf proxy-ssl-conf server-conf server-ssl-conf tunnel-ssl-conf sqldb-master-conf sqldb-standby-conf sampledir = $(prefix)/samples/store-cluster -nobase_dist_sample_DATA = htdocs/*.html htdocs/*/*.html htdocs/domains/*/*.html htdocs/domains/*/*/*.html domains/*/*.py domains/*/*.composite shared/*.composite +nobase_dist_sample_DATA = htdocs/*.html htdocs/*/*.html domains/*/htdocs/*.html domains/*/htdocs/*/*.html domains/*/*.py domains/*/*.composite shared/*.composite dist_noinst_SCRIPTS = server-test #TESTS = server-test diff --git a/sca-cpp/trunk/samples/store-cluster/domains/jane/htdocs/index.html b/sca-cpp/trunk/samples/store-cluster/domains/jane/htdocs/index.html new file mode 100644 index 0000000000..4cd219bc9c --- /dev/null +++ b/sca-cpp/trunk/samples/store-cluster/domains/jane/htdocs/index.html @@ -0,0 +1,154 @@ + + + + + + + +Store + + + + + + + +

Jane's Store

+
+
+

Catalog

+
+
+
+ +
+
+ +

Your Shopping Cart

+
+
+
+
+
+ + +(feed) +
+
+ + + diff --git a/sca-cpp/trunk/samples/store-cluster/domains/jane/htdocs/login/index.html b/sca-cpp/trunk/samples/store-cluster/domains/jane/htdocs/login/index.html new file mode 100644 index 0000000000..4e3b5a2f61 --- /dev/null +++ b/sca-cpp/trunk/samples/store-cluster/domains/jane/htdocs/login/index.html @@ -0,0 +1,205 @@ + + + + + + + + +Sign in + + +

Sign in with an OpenID or OAuth provider

+
+ + + +
+

Sign in with your Google account

+

Sign in with your Yahoo account

+

Sign in with your MyOpenID account

+

Sign in with your Verisign account

+

Sign in with your MySpace account

+ +

Sign in with a Google apps domain
+
+

+ +

Sign in with your Livejournal account
+
+

+ +

Sign in with your Blogspot account
+
+

+ +

Sign in with your Blogger account
+
+

+ +

Sign in with an OpenID endpoint
+
+

+ +

Sign in with your Facebook account

+

Sign in with your Github account

+ +

Sign in with your Linkedin account

+

Sign in with your Twitter account

+
+ +
+ +
+ +
+ + + + + +
+ +
+ + + + + + +
+ + + diff --git a/sca-cpp/trunk/samples/store-cluster/domains/jane/htdocs/logout/index.html b/sca-cpp/trunk/samples/store-cluster/domains/jane/htdocs/logout/index.html new file mode 100644 index 0000000000..37c2594ffb --- /dev/null +++ b/sca-cpp/trunk/samples/store-cluster/domains/jane/htdocs/logout/index.html @@ -0,0 +1,43 @@ + + + + + + + + +Sign out + + +

Sign out

+
+ +
+ + +
+ + diff --git a/sca-cpp/trunk/samples/store-cluster/domains/joe/htdocs/index.html b/sca-cpp/trunk/samples/store-cluster/domains/joe/htdocs/index.html new file mode 100644 index 0000000000..c32dcd9d53 --- /dev/null +++ b/sca-cpp/trunk/samples/store-cluster/domains/joe/htdocs/index.html @@ -0,0 +1,154 @@ + + + + + + + +Store + + + + + + + +

Joe's Store

+
+
+

Catalog

+
+
+
+ +
+
+ +

Your Shopping Cart

+
+
+
+
+
+ + +(feed) +
+
+ + + diff --git a/sca-cpp/trunk/samples/store-cluster/domains/joe/htdocs/login/index.html b/sca-cpp/trunk/samples/store-cluster/domains/joe/htdocs/login/index.html new file mode 100644 index 0000000000..4e3b5a2f61 --- /dev/null +++ b/sca-cpp/trunk/samples/store-cluster/domains/joe/htdocs/login/index.html @@ -0,0 +1,205 @@ + + + + + + + + +Sign in + + +

Sign in with an OpenID or OAuth provider

+
+ + + +
+

Sign in with your Google account

+

Sign in with your Yahoo account

+

Sign in with your MyOpenID account

+

Sign in with your Verisign account

+

Sign in with your MySpace account

+ +

Sign in with a Google apps domain
+
+

+ +

Sign in with your Livejournal account
+
+

+ +

Sign in with your Blogspot account
+
+

+ +

Sign in with your Blogger account
+
+

+ +

Sign in with an OpenID endpoint
+
+

+ +

Sign in with your Facebook account

+

Sign in with your Github account

+ +

Sign in with your Linkedin account

+

Sign in with your Twitter account

+
+ +
+ +
+ +
+ + + + + +
+ +
+ + + + + + +
+ + + diff --git a/sca-cpp/trunk/samples/store-cluster/domains/joe/htdocs/logout/index.html b/sca-cpp/trunk/samples/store-cluster/domains/joe/htdocs/logout/index.html new file mode 100644 index 0000000000..4a025af225 --- /dev/null +++ b/sca-cpp/trunk/samples/store-cluster/domains/joe/htdocs/logout/index.html @@ -0,0 +1,42 @@ + + + + + + + + +Sign out + + +

Sign out

+
+ +
+ + +
+ diff --git a/sca-cpp/trunk/samples/store-cluster/htdocs/domains/jane/index.html b/sca-cpp/trunk/samples/store-cluster/htdocs/domains/jane/index.html deleted file mode 100644 index 4cd219bc9c..0000000000 --- a/sca-cpp/trunk/samples/store-cluster/htdocs/domains/jane/index.html +++ /dev/null @@ -1,154 +0,0 @@ - - - - - - - -Store - - - - - - - -

Jane's Store

-
-
-

Catalog

-
-
-
- -
-
- -

Your Shopping Cart

-
-
-
-
-
- - -(feed) -
-
- - - diff --git a/sca-cpp/trunk/samples/store-cluster/htdocs/domains/jane/login/index.html b/sca-cpp/trunk/samples/store-cluster/htdocs/domains/jane/login/index.html deleted file mode 100644 index 4e3b5a2f61..0000000000 --- a/sca-cpp/trunk/samples/store-cluster/htdocs/domains/jane/login/index.html +++ /dev/null @@ -1,205 +0,0 @@ - - - - - - - - -Sign in - - -

Sign in with an OpenID or OAuth provider

-
- - - -
-

Sign in with your Google account

-

Sign in with your Yahoo account

-

Sign in with your MyOpenID account

-

Sign in with your Verisign account

-

Sign in with your MySpace account

- -

Sign in with a Google apps domain
-
-

- -

Sign in with your Livejournal account
-
-

- -

Sign in with your Blogspot account
-
-

- -

Sign in with your Blogger account
-
-

- -

Sign in with an OpenID endpoint
-
-

- -

Sign in with your Facebook account

-

Sign in with your Github account

- -

Sign in with your Linkedin account

-

Sign in with your Twitter account

-
- -
- -
- -
- - - - - -
- -
- - - - - - -
- - - diff --git a/sca-cpp/trunk/samples/store-cluster/htdocs/domains/jane/logout/index.html b/sca-cpp/trunk/samples/store-cluster/htdocs/domains/jane/logout/index.html deleted file mode 100644 index 37c2594ffb..0000000000 --- a/sca-cpp/trunk/samples/store-cluster/htdocs/domains/jane/logout/index.html +++ /dev/null @@ -1,43 +0,0 @@ - - - - - - - - -Sign out - - -

Sign out

-
- -
- - -
- - diff --git a/sca-cpp/trunk/samples/store-cluster/htdocs/domains/joe/index.html b/sca-cpp/trunk/samples/store-cluster/htdocs/domains/joe/index.html deleted file mode 100644 index c32dcd9d53..0000000000 --- a/sca-cpp/trunk/samples/store-cluster/htdocs/domains/joe/index.html +++ /dev/null @@ -1,154 +0,0 @@ - - - - - - - -Store - - - - - - - -

Joe's Store

-
-
-

Catalog

-
-
-
- -
-
- -

Your Shopping Cart

-
-
-
-
-
- - -(feed) -
-
- - - diff --git a/sca-cpp/trunk/samples/store-cluster/htdocs/domains/joe/login/index.html b/sca-cpp/trunk/samples/store-cluster/htdocs/domains/joe/login/index.html deleted file mode 100644 index 4e3b5a2f61..0000000000 --- a/sca-cpp/trunk/samples/store-cluster/htdocs/domains/joe/login/index.html +++ /dev/null @@ -1,205 +0,0 @@ - - - - - - - - -Sign in - - -

Sign in with an OpenID or OAuth provider

-
- - - -
-

Sign in with your Google account

-

Sign in with your Yahoo account

-

Sign in with your MyOpenID account

-

Sign in with your Verisign account

-

Sign in with your MySpace account

- -

Sign in with a Google apps domain
-
-

- -

Sign in with your Livejournal account
-
-

- -

Sign in with your Blogspot account
-
-

- -

Sign in with your Blogger account
-
-

- -

Sign in with an OpenID endpoint
-
-

- -

Sign in with your Facebook account

-

Sign in with your Github account

- -

Sign in with your Linkedin account

-

Sign in with your Twitter account

-
- -
- -
- -
- - - - - -
- -
- - - - - - -
- - - diff --git a/sca-cpp/trunk/samples/store-cluster/htdocs/domains/joe/logout/index.html b/sca-cpp/trunk/samples/store-cluster/htdocs/domains/joe/logout/index.html deleted file mode 100644 index 4a025af225..0000000000 --- a/sca-cpp/trunk/samples/store-cluster/htdocs/domains/joe/logout/index.html +++ /dev/null @@ -1,42 +0,0 @@ - - - - - - - - -Sign out - - -

Sign out

-
- -
- - -
- diff --git a/sca-cpp/trunk/samples/store-cluster/proxy-conf b/sca-cpp/trunk/samples/store-cluster/proxy-conf index b60e7ba7f9..215c25f2f7 100755 --- a/sca-cpp/trunk/samples/store-cluster/proxy-conf +++ b/sca-cpp/trunk/samples/store-cluster/proxy-conf @@ -24,7 +24,7 @@ set -x # Configure a proxy balancer ../../modules/http/httpd-conf $root sca-store.com $port/80 $root/htdocs -../../modules/http/vhost-conf $root +../../modules/http/vhost-conf $root $root/domains htdocs ../../modules/http/proxy-conf $root ../../modules/http/httpd-event-conf $root diff --git a/sca-cpp/trunk/samples/store-cluster/proxy-ssl-conf b/sca-cpp/trunk/samples/store-cluster/proxy-ssl-conf index fc329f0d18..b8d202049b 100755 --- a/sca-cpp/trunk/samples/store-cluster/proxy-ssl-conf +++ b/sca-cpp/trunk/samples/store-cluster/proxy-ssl-conf @@ -25,7 +25,7 @@ set -x # Configure an SSL-enabled proxy balancer ../../modules/http/httpd-conf $root sca-store.com $port $root/htdocs -../../modules/http/vhost-conf $root +../../modules/http/vhost-conf $root $root/domains htdocs ../../modules/http/proxy-conf $root ../../modules/http/httpd-event-conf $root tar -C tmp/ssl -c `../../modules/http/ssl-cert-find tmp/ssl` | tar -C $root -x diff --git a/sca-cpp/trunk/samples/store-cluster/server-conf b/sca-cpp/trunk/samples/store-cluster/server-conf index d274dd3d17..babf2f2ef3 100755 --- a/sca-cpp/trunk/samples/store-cluster/server-conf +++ b/sca-cpp/trunk/samples/store-cluster/server-conf @@ -24,7 +24,7 @@ set -x # Configure an app server ../../modules/http/httpd-conf $root sca-store.com $port/80 htdocs -../../modules/http/vhost-conf $root +../../modules/http/vhost-conf $root domains htdocs ../../modules/server/server-conf $root ../../modules/python/python-conf $root cat >>$root/conf/httpd.conf < + + + + + + +Store + + + + + + + +

Jane's Store

+
+
+

Catalog

+
+
+
+ +
+
+ +

Your Shopping Cart

+
+
+
+
+
+ + +(feed) +
+
+ + + diff --git a/sca-cpp/trunk/samples/store-vhost/domains/joe/htdocs/index.html b/sca-cpp/trunk/samples/store-vhost/domains/joe/htdocs/index.html new file mode 100644 index 0000000000..c32dcd9d53 --- /dev/null +++ b/sca-cpp/trunk/samples/store-vhost/domains/joe/htdocs/index.html @@ -0,0 +1,154 @@ + + + + + + + +Store + + + + + + + +

Joe's Store

+
+
+

Catalog

+
+
+
+ +
+
+ +

Your Shopping Cart

+
+
+
+
+
+ + +(feed) +
+
+ + + diff --git a/sca-cpp/trunk/samples/store-vhost/htdocs/domains/jane/index.html b/sca-cpp/trunk/samples/store-vhost/htdocs/domains/jane/index.html deleted file mode 100644 index 4cd219bc9c..0000000000 --- a/sca-cpp/trunk/samples/store-vhost/htdocs/domains/jane/index.html +++ /dev/null @@ -1,154 +0,0 @@ - - - - - - - -Store - - - - - - - -

Jane's Store

-
-
-

Catalog

-
-
-
- -
-
- -

Your Shopping Cart

-
-
-
-
-
- - -(feed) -
-
- - - diff --git a/sca-cpp/trunk/samples/store-vhost/htdocs/domains/joe/index.html b/sca-cpp/trunk/samples/store-vhost/htdocs/domains/joe/index.html deleted file mode 100644 index c32dcd9d53..0000000000 --- a/sca-cpp/trunk/samples/store-vhost/htdocs/domains/joe/index.html +++ /dev/null @@ -1,154 +0,0 @@ - - - - - - - -Store - - - - - - - -

Joe's Store

-
-
-

Catalog

-
-
-
- -
-
- -

Your Shopping Cart

-
-
-
-
-
- - -(feed) -
-
- - - diff --git a/sca-cpp/trunk/samples/store-vhost/ssl-start b/sca-cpp/trunk/samples/store-vhost/ssl-start index 6f715afb89..ddff91eafb 100755 --- a/sca-cpp/trunk/samples/store-vhost/ssl-start +++ b/sca-cpp/trunk/samples/store-vhost/ssl-start @@ -24,7 +24,7 @@ ../../modules/http/ssl-cert-conf tmp sca-store.com server ../../modules/http/ssl-cert-conf tmp *.sca-store.com vhost ../../modules/http/httpd-conf tmp sca-store.com 8090 htdocs -../../modules/http/vhost-conf tmp +../../modules/http/vhost-conf tmp domains htdocs ../../modules/http/httpd-ssl-conf tmp 8453 ../../modules/http/vhost-ssl-conf tmp ../../modules/http/basic-auth-conf tmp diff --git a/sca-cpp/trunk/samples/store-vhost/start b/sca-cpp/trunk/samples/store-vhost/start index 16ffe351ec..c8bb6854f8 100755 --- a/sca-cpp/trunk/samples/store-vhost/start +++ b/sca-cpp/trunk/samples/store-vhost/start @@ -18,7 +18,7 @@ # under the License. ../../modules/http/httpd-conf tmp sca-store.com 8090 htdocs -../../modules/http/vhost-conf tmp +../../modules/http/vhost-conf tmp domains htdocs ../../modules/server/server-conf tmp ../../modules/python/python-conf tmp cat >>tmp/conf/httpd.conf <