Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

URL generation doesn't allow for proxied CouchDB under a prefix #1

Open
gdamjan opened this issue Oct 18, 2010 · 0 comments
Open

URL generation doesn't allow for proxied CouchDB under a prefix #1

gdamjan opened this issue Oct 18, 2010 · 0 comments

Comments

@gdamjan
Copy link

gdamjan commented Oct 18, 2010

My CouchDB database is proxied behind nginx under a prefix /db/. Here's the nginx config for completness:
location /db/ {
rewrite /db/(.*) /$1 break;
proxy_pass http://127.0.0.1:5984/;
}

Focus breaks hard in this configuration. Some examples are:

  • focus.js: $.getJSON("/_session/", ...
  • index.html: <script src="/_utils/script/jquery.js">
    etc..

One sollution would be to always use relative urls.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant