oauth-io / oauthd

oauthd - The OAuth Daemon is the open source version of the OAuth.io core
Apache License 2.0
1.54k stars 210 forks source link

Tons of 404 when trying to do base with nginx #140

Open goodwill opened 9 years ago

goodwill commented 9 years ago

As I have followed the documentation to configure oauthd mount below a path of my main site, I can't access the administration interface at all.

Here is my config:

var local_config = { // Here you can override any configuration field that is specifig to a local machine. // The config.local.js is git ignored. host_url: 'https://domain.com', base: "/oauthd", base_api: "/oauthd/api", port: 6284, bind: '127.0.0.1'

};

Here is my nginx mount point: location ^~ /oauthd/ { proxy_pass http://127.0.0.1:6284; }

If I goto /oauthd/admin, I got the main page, but all resources are still on /lib etc, which means everything is a 404 because the path should be /oauthd/ prefixed.

apoczobut commented 9 years ago

I've the same problem with nginx, any help?

angelxmoreno commented 7 years ago

Are you having an Nginx config issue or an oauthd issue ? Does the app work when you go to http://127.0.0.1:6284 ?