incubator-couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From francisco treacy <francisco.tre...@gmail.com>
Subject Re: jquery and trailing \n
Date Thu, 18 Jun 2009 14:27:55 GMT
Cool.

I'll just post what I used to configure Nginx:

server {

(...)

        location / {
                root   /opt/dev/couch_files/;
                index  index.html index.htm;
        }

        location /couchdb {
                proxy_pass http://localhost:5984/;
        }

(...)

}

Francisco

2009/6/18 Oliver Boermans <boermans@gmail.com>:
> 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