Skip to content

nginx: fix autoloading for some builtins apps#5284

Closed
Mic92 wants to merge 1 commit intonextcloud:masterfrom
Mic92:patch-2
Closed

nginx: fix autoloading for some builtins apps#5284
Mic92 wants to merge 1 commit intonextcloud:masterfrom
Mic92:patch-2

Conversation

@Mic92
Copy link
Copy Markdown
Contributor

@Mic92 Mic92 commented Oct 24, 2020

In 6b40a23#diff-e6fc0cd0bc2157559d74ab9196ea4209f9205a94865839d0f7b32b9810365c78
the way nginx access files was changed. This broke some apps like user_ldap, where ajax function are called from the directory directly. They need to be executed through the top-level index.php, or otherwise they will find their dependencies. Maybe this should be reverted back to rewrite ^ /index.php;? cc @jivanpal

Signed-off-by: Jörg Thalheim <joerg@thalheim.io>
@MorrisJobke
Copy link
Copy Markdown
Member

cc @josh4trunks


location / {
try_files $uri $uri/ /index.php$request_uri;
try_files $uri/ /index.php$request_uri;
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
try_files $uri/ /index.php$request_uri;
try_files $uri/ /index.php$request_uri;

@josh4trunks
Copy link
Copy Markdown
Contributor

I think the full fix is explained here.
#2197 (comment)

Does anyone mind making this a PR so we can review/test?

@Mic92
Copy link
Copy Markdown
Contributor Author

Mic92 commented Oct 26, 2020

OK. Maybe original PR should be revoked completely.

@Mic92 Mic92 closed this Oct 26, 2020
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

Successfully merging this pull request may close these issues.

3 participants