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

outdated docs: solution appeared for '0bytes' (Finder) in apache2 with fcgi #168

Open
labor4 opened this issue Jun 29, 2024 · 3 comments
Open

Comments

@labor4
Copy link

labor4 commented Jun 29, 2024

Apache2 + FPM via proxy:fcgi

Finder uploads now work if I set, in apache2 site conf:

SetEnv proxy-sendcl 1 

BTW, I'm using

    <FilesMatch "\.php$">
        SetHandler "proxy:fcgi://127.0.0.1:9001"
    </FilesMatch>

see:
https://bz.apache.org/bugzilla/show_bug.cgi?id=57087

update needed in:
https://sabre.io/dav/0bytes/

@phil-davis
Copy link
Contributor

@labor4 can you please make a PR to https://github.com/sabre-io/sabre.io/pulls
That will make it clear what adjustment to the text you are suggesting, and we can review etc .

@labor4
Copy link
Author

labor4 commented Jul 3, 2024

there you are: #166
Sorry I can't be more distinct. You know this better. But this should keep the hint fair until verified.

@labor4
Copy link
Author

labor4 commented Jul 18, 2024

taken from a Nextcloud .htaccess

# Clients like xDavv5 on Android, or Cyberduck, use chunked requests.
# When FastCGI or FPM is used with apache, requests arrive to Nextcloud without any content.
# This leads to the creation of empty files.
# The following directive will force the problematic requests to be buffered before being forwarded to Nextcloud.
# This way, the "Transfer-Encoding" header is removed, the "Content-Length" header is set, and the request content is proxied to Nextcloud.
# Here are more information about the issue:
#  - https://docs.cyberduck.io/mountainduck/issues/fastcgi/
#  - https://docs.nextcloud.com/server/latest/admin_manual/issues/general_troubleshooting.html#troubleshooting-webdav
<IfModule setenvif.c>
  <Location "/remote.php">
    SetEnvIf Transfer-Encoding "chunked" proxy-sendcl=1
  </Location>
</IfModule>

@DeepDiver1975 DeepDiver1975 transferred this issue from sabre-io/dav Sep 5, 2024
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