-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
No more 403 and 404 redirecting #392
Conversation
cc @josh4trunks but for me this looks okay, because we render a proper HTML page in such cases anyway. |
This should also be removed in the "Nextcloud in a subdir of nginx" example. |
The error pages broke OCS endpoints which return 403 and 404 nextcloud/server#3847 Signed-off-by: Joas Schilling <coding@schilljs.com>
2fdc537
to
daa543e
Compare
I didn't notice it's twice in the docs. fixed now |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested and works 👍
stable11 6533a9c |
I had a thought. For the Should we instead forward these all to index.php? |
I would say so. |
I am not sure if .htaccess currently rewrites these? It does Also, I'm wondering why I originally included the following files to be executed directly. I know there was a reason for it, but I don't see reference to them in .htaccess anymore.
|
They should be executed directly. The rewrite rules are extended in https://github.com/nextcloud/server/blob/ccd0ded812c2039c14293b78310f144f1b5d7538/lib/private/Setup.php#L459-L485 |
ahh great, I'll review that a bit |
That is where the static files were referenced from! But... I do not think Nextcloud serves anything but svg, woff, and occasionally a png. I did see a ttf file in Nextcloud's source but I'm not sure if it's ever served. |
A right ... they were still in the cache. Let me revert the PR. |
And then you can create a new one with all the stuff (including the TTL for the cache) |
I don't fully understand. Is Nextcloud setting a TTL / max-age for these somewhere? |
|
because I reverted the other PR and there was also the update for the max-age included. |
Ok, makes sense. |
See PR here #468 |
* Nextcloud is not properly loaded in the standalone version (especially the theming) * it is already not listed anymore in the Nginx config (see nextcloud/documentation#392) * the index.php-free version doesn't support this Signed-off-by: Morris Jobke <hey@morrisjobke.de>
Seems to be causing many issues lately:
Fix nextcloud/server#3847
There is no way we can notify people about such changes, right?