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

Fix wrong URLs in browsable API #4

Closed
lorey opened this issue May 6, 2020 · 1 comment
Closed

Fix wrong URLs in browsable API #4

lorey opened this issue May 6, 2020 · 1 comment

Comments

@lorey
Copy link
Owner

lorey commented May 6, 2020

When developing under a port other than 80, URLs should be localhost:123/api but are localhost/api. Might have to do with nginx proxy, using USE_X_FORWARDED_HOST did not help so far.

@lorey lorey changed the title Fix wront URLs in browsable API Fix wrong URLs in browsable API May 6, 2020
@lorey
Copy link
Owner Author

lorey commented May 6, 2020

Fixed it by using $http_host instead of $host. Not sure if that's optimal, but works for me. Explanation: https://serverfault.com/a/706439

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

1 participant