Here is some configuration syntax for nginx I got from the nginx mail list:
server {
server_name localhost;
listen 8080;
location /rails {
proxy_pass http://localhost:3000;
include proxy.conf; # other proxy settings - see docs
}
location / {
proxy_pass http://localhost:5984;
include proxy.conf; # other proxy settings - see docs
}
}
On 4/4/10, Audrey Lee <audrey.lee.is.me@gmail.com> wrote:
> Hello couchDB People,
>
> Is it possible to easily glue together couchDB and Rails?
>
> I have a rails server running here:
> http://localhost:3000/rails/
>
> And I have a couchDB server running here:
> http://localhost:5984/
>
> I'd like to configure couchDB (or Rails) so that I have a server which
> listens on 8080.
>
> I want any request directed at:
> http://localhost:8080/rails/
> to be forwarded to
> http://localhost:3000/rails/
> And I want all other requests to be forwarded to
> http://localhost:5984/
>
> Or perhaps I could configure couchDB so that any request directed at:
> http://localhost:5984/rails/
> is forwarded to
> http://localhost:3000/rails/
>
> Have any of you done something like this?
>
|