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

Tips: persistence and redirections behind reverse proxy #196

Open
kamil-certat opened this issue Nov 27, 2024 · 1 comment
Open

Tips: persistence and redirections behind reverse proxy #196

kamil-certat opened this issue Nov 27, 2024 · 1 comment

Comments

@kamil-certat
Copy link

When upgrading Limesurvey, I came into a persistence trap: the upload/surveys is just one of a few upload directories you may want to keep persistence - for example, if you upload custom themes, they land in the upload/themes.

So for anyone who came into this in the future: you most probably want to have a persistent volume or mounted directory for each subdirectory in /var/www/html/upload. They are admintheme, global, labels, plugins, surveys, themes, twig - or just a one mount for the whole upload directory.

The second tip is about the Apache edition deployed behind a reverse proxy, but listening to non-HTTP(S) port (the default configuration from examples). You may notice that some URLs don't work without the trailing slash, e.g. https://your-host/admin - the reason is simple, Apache wanted to redirect you to the canonical URL with the slash, but it used own listening port in the response. When the front proxy doesn't listen on it, the request won't work. To overcome it, just add the ServerName directive with your domain to the virtual host configuration in Apache - it will stop guessing the correct one.

@martialblog
Copy link
Owner

Hi, thanks for the notice. If you want you can place this knowhow in the "Known Issues" section in the README via a PR.

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