-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
NC12 slow with multiple domains #6752
Comments
Is this also true when the second trusted domain is the local hostname? |
Yes, even with the local hostname. Access is fast, if I send the same static trusted_domain as hostname to php (fastcgi_param HTTP_HOST static-hostname;) - but other errors then. |
Slow-Log for 10 slow requests:
|
I'm also affected by this (quite annoying) bug on NC 12.0.4. Is there a fix or something? |
I have not found a workaround. I tried to use separate php-fpm-pools, separate document-roots - nothing helps. Two complete different Installations on same machine do work - but if two hostnames on same machine share the same database and same data-dir, the access over two hostnames is very slow. API-access and ajax is fast, only pages with theming are affected. https://help.nextcloud.com/t/nc12-slow-with-multiple-domains/21597 |
Thank you for the information :) |
Yes, solves the issue! Thanks! |
Sorry for the late reply. |
Did you only appy the single commit 6770213? Maybe there was an issue with applying the patch? Works fine here on 12.0.5 as well |
Yes, only the commit. But at the moment I don't have the time to check the details. Maybe I am able to try it in a few weeks again. |
Steps to reproduce
nextcloud with multiple trusted domains
slow, when multiple domains are used
on test system, multipe times load url from domain A is fast, multiple times from domain B is fast, but every change between domains is slow, multiple seconds to wait
Expected behaviour
fast access, whatever hostname was previously used
Actual behaviour
slow access, when prevoius request used another hostname
Server configuration
Operating system: CentOS 6 and Ubuntu 16.04
Web server: Apache 2.2.15 and nginx 1.10.3
Database: MySQL
PHP version: 7.1.7 and 7.0
Nextcloud version: 12.0.3
since commit 5a9224f
#3531
Updated from an older Nextcloud/ownCloud or fresh install: Both.
Nextcloud configuration:
Config report
Test-URLs:
https://TestA.tob.serpens.uberspace.de/index.php/s/c8xRwV8ZZmGCGFE
https://TestB.tob.serpens.uberspace.de/index.php/s/c8xRwV8ZZmGCGFE
page loads measured with curl in bash-script:
The text was updated successfully, but these errors were encountered: