incubator-couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Oliver Boermans <boerm...@gmail.com>
Subject Re: jquery and trailing \n
Date Thu, 18 Jun 2009 14:22:32 GMT
2009/6/18 Jan Lehnardt <jan@apache.org>:
> You shouldn't do that :) alternatively you can use Apache's mod_proxy
> or similar to proxy CouchDB to your site's domain.

Gotto learn how to do this properly. I added a .htaccess file to my
webserver documents directory that looks like:

	Options FollowSymLinks
	RewriteEngine On
	RewriteBase /
	
	RewriteRule cdb/(.*)    http://127.0.0.1:5984/$1 [P]

This allowed me to stick files in my regular localhost directory and
refer to couchdb as if it was in a sub-directory.

then
	http://localhost/project/cdb/

is equivalent to
	http://localhost:5984/

Crude but works for messing around on my machine locally.

Mime
View raw message