-
Notifications
You must be signed in to change notification settings - Fork 509
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
Working nginx config for a subdirectory install #2747
Comments
What's your APP_URL value? |
Without the trailing slash, but if I add it, it makes no difference. |
This seems to work:
|
Thanks. Can you share your full nginx config, so that we can add it to the Installation Guide. |
This is almost full configuration that I'm using right now, without Seeing my installation is new and clean, I'd like to test it more. Meanwhile I suggest that you link this issue in the Installation Guide. |
According to #1005 and #1610 FreeScout supports subdirectory installation (e.g.
https://example.com/freescout/
instead ofhttps://freescout.example.com
), however if I use the nginx config from the Installation Guide I cannot get nginx to serve static files without breaking FreeScout's routing.Here's my current nginx config:
...and here's what it gets me:
This is what I've tried:
It fixes static files but breaks the routing:
Interestingly, in this case (if I clear the cookies)
/freescout/login/
works correctly:(The
APP_URL
parameter in the.env
file is set correctly).I'm thinking I need a
rewrite
somewhere, but I wonder what is the recommended way of solving this? Any tips would be appreciated.The text was updated successfully, but these errors were encountered: