Avoid absolute links to resources #75

xasima opened this Issue Mar 11, 2013 · 4 comments


None yet
4 participants

xasima commented Mar 11, 2013

All links to /images, /javascripts, /stylesheets, and api requests (at least processReq) are currently started with / symbol which prevents to locate iodocs service under subfolder.

Thus http://*****.com/iodoc with the following nginx snippet doesn't work due to this limitation

 location /iodoc {
        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header Host $http_host;
        proxy_set_header X-NginX-Proxy true;
        rewrite /iodoc/(.*) /$1 break;
        proxy_pass http://localhost:3000/;
        proxy_redirect off;

ghost commented Apr 9, 2013

Encountering this error as well; /processReq is timing out 200 but returning nothing. When I look for the URI directly I get the following:

500 Error: Cannot find module '/Users/ben/Sites/menuplanner_api/iodocs/public/data/processReq.json'

If I'm misconfigured somehow, I'd love to know it, but I installed iodocs using npm and added my API configuration (localhost, testing a new api).


Any updates?


phairow commented Oct 10, 2014

fixed in #181

@phairow phairow closed this Oct 10, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment