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

Update SPA code in nginx conf? #44

Open
cowboy opened this issue Sep 7, 2015 · 1 comment
Open

Update SPA code in nginx conf? #44

cowboy opened this issue Sep 7, 2015 · 1 comment

Comments

@cowboy
Copy link
Contributor

cowboy commented Sep 7, 2015

These snippets aren't necessary, but might be nice to add.

Serve static assets:

  # Serve static assets in /assets/ as-requested.
  location /assets/ {
    try_files $uri =404;
  }

Remove trailing slashes from app URLs:

  location / {
    # Remove trailing slashes.
    rewrite ^(/.*)/$ $1 permanent;
    try_files $uri /index.html;
  }
@cowboy cowboy changed the title For SPA, remove trailing slashes from app URLs. Update SPA code in nginx conf? Sep 7, 2015
@tkellen
Copy link

tkellen commented Oct 29, 2015

👍, wanna spin up a PR with them commented out with notes on usage?

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