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

Sinergis is unable to serve under a directory #5

Open
mdamt opened this issue Aug 30, 2014 · 0 comments
Open

Sinergis is unable to serve under a directory #5

mdamt opened this issue Aug 30, 2014 · 0 comments
Assignees

Comments

@mdamt
Copy link
Contributor

mdamt commented Aug 30, 2014

Scenario:

A server is set to serve a sinergis site under a directory. E.g. http://host/app is mapped into http://localhost:3000/. In current condition, everything is redirected to /, e.g accessing http://host/app is redirected to http://host/login and not http://host/app/login.

Preliminary code: https://github.com/mdamt/sinergis/tree/underdir

It needs prefix configuration in policy.

What's working:

  • login
  • redirection to login page

nginx example config:

  location /app {
    rewrite ^/app(/.*)$ $1 break;
    proxy_pass http://127.0.0.1:4000/;
  }

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

2 participants