diff --git a/bin/launch-couchdb-instance b/bin/launch-couchdb-instance index 245b054..9d8e3de 100755 --- a/bin/launch-couchdb-instance +++ b/bin/launch-couchdb-instance @@ -44,7 +44,11 @@ done # move to launch echo "Access the Couch here:" echo "http://$HOSTNAME:5984/" +echo "or" +echo "http://$HOSTNAME/" echo "to login run:" +echo "" echo "ssh $SSH_OPTS \"$USER@$HOSTNAME\"" +echo "" echo "to terminate run:" echo "ec2-terminate-instances $INSTANCE" diff --git a/bin/remote/couchdb_vhost.conf b/bin/remote/couchdb_vhost.conf index 21bd981..8121912 100644 --- a/bin/remote/couchdb_vhost.conf +++ b/bin/remote/couchdb_vhost.conf @@ -7,6 +7,11 @@ ProxyPreserveHost On ProxyRequests Off + + Order deny,allow + Allow from all + + # RewriteEngine on # RewriteRule ^/$ /drl/_design/sofa/_list/index/recent-posts?descending=true&limit=5 [R] ProxyPass / http://localhost:5984/ nocanon diff --git a/bin/remote/create-couchdb-image-remote b/bin/remote/create-couchdb-image-remote index c4f5a9e..4167a62 100755 --- a/bin/remote/create-couchdb-image-remote +++ b/bin/remote/create-couchdb-image-remote @@ -55,8 +55,14 @@ COUCH_LOCAL_INI=/etc/couchdb/local.ini echo "configuring CouchDB" cat /mnt/makeami/couchdb-config.ini >> $COUCH_LOCAL_INI + # Configure Apache +echo "configure Apache" + +mv /etc/apache2/mods-available/proxy* /etc/apache2/mods-enabled/ +mv /etc/apache2/mods-available/rewrite.load /etc/apache2/mods-enabled/ +# install the couchdb site rm /etc/apache2/sites-enabled/* mv /mnt/makeami/couchdb_vhost.conf /etc/apache2/sites-enabled/