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

nginx cache rules breaks api route #4

Closed
Csineneo opened this issue Jan 19, 2019 · 5 comments
Closed

nginx cache rules breaks api route #4

Csineneo opened this issue Jan 19, 2019 · 5 comments
Labels
bug Something isn't working

Comments

@Csineneo
Copy link
Contributor

The cache rules in the officially recommended nginx configuration may causes api route to fail.

There is 404 error when the https proxy is enabled and using the recommended nginx configuration.

I am confused about this issue and cannot understand how the problem is caused.

@dsevillamartin
Copy link
Member

Those cache rules should only affect static files, hm... Are you able to access any other API routes? For example, /api, /api/users, /api/users/1...

@Csineneo
Copy link
Contributor Author

Other api routes are normal except /api/flagrow/download. But even if I remove the cache rules, the /api/flagrow/download still doesn't work.

Here are examples for testing:

  1. with cache rules
  2. without cache rules

@Magicalex
Copy link
Contributor

Any news? I have the same issue

@dsevillamartin
Copy link
Member

I assume it's because of the file types... not sure what could be done from fof/secure-https to fix this...

@dsevillamartin dsevillamartin added the bug Something isn't working label Apr 1, 2019
@imorland
Copy link
Member

Closing as stale

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants