Skip to content

Commit

Permalink
fixup proxy conf
Browse files Browse the repository at this point in the history
  • Loading branch information
jchris committed Nov 28, 2009
1 parent 62db5b3 commit ca14213
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 0 deletions.
4 changes: 4 additions & 0 deletions bin/launch-couchdb-instance
Expand Up @@ -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"
5 changes: 5 additions & 0 deletions bin/remote/couchdb_vhost.conf
Expand Up @@ -7,6 +7,11 @@
ProxyPreserveHost On
ProxyRequests Off

<Proxy *>
Order deny,allow
Allow from all
</Proxy>

# RewriteEngine on
# RewriteRule ^/$ /drl/_design/sofa/_list/index/recent-posts?descending=true&limit=5 [R]
ProxyPass / http://localhost:5984/ nocanon
Expand Down
6 changes: 6 additions & 0 deletions bin/remote/create-couchdb-image-remote
Expand Up @@ -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/

Expand Down

0 comments on commit ca14213

Please sign in to comment.