I’m attempting to set up OwnCloud 10.0.8 on an nginx proxy + apache + php-fpm with https. I know this is not a supported setup, but I’m just wondering if anybody else has gotten it to work? The web interface seems to work without any issues but I can’t seem to connect via the desktop client or android client.
My username and password is just plain text with no symbols.
The desktop client tells me Access forbidden by server. To verify that you have proper access, click here to access the service with your browser
. Clicking on “click here” opens up the web interface which I can log in and use without any issues. I can also access the webdav url in my browser and I will see the message This is the WebDAV interface. It can only be accessed by WebDAV clients such as the ownCloud desktop sync client.
When I attempt to login, no error message or any message of any kind is shown in data/owncloud.log
.
The nginx access log when I attempt to login with the desktop client shows a PROPFIND
request being made.
27.99.96.78 - Moult [09/Jun/2018:02:04:51 +0200] "PROPFIND /remote.php/webdav/ HTTP/1.1" 401 424 "-" "Mozilla/5.0 (Linux) mirall/2.4.1"
… and the apache access log:
[09/Jun/2018:02:06:03 +0200] "PROPFIND /remote.php/webdav/ HTTP/1.1" 401 412
The nginx error log shows this after attempting to log in:
2018/06/09 01:44:44 [info] 21763#0: *403976 client 27.99.96.78 closed keepalive connection
No message in the apache error log.
Here is a simplified and censored nginx configuration.
server {
listen 80;
server_name mysite.com;
root /path/to/owncloud/www;
dav_methods PUT DELETE MKCOL COPY MOVE;
dav_ext_methods PROPFIND OPTIONS;
location / {
proxy_set_header Destination $http_destination;
proxy_set_header X-Forwarded-For $remote_addr;
proxy_pass_header Authorization;
proxy_set_header Host $host;
proxy_set_header X-Real-Ip $remote_addr;
proxy_http_version 1.1;
proxy_set_header Connection "";
proxy_buffering off;
proxy_read_timeout 36000s;
proxy_redirect off;
more_set_input_headers 'Authorization: $http_authorization';
more_set_headers -s 401 'WWW-Authenticate: Basic realm="ownCloud"';
proxy_pass http://X.X.X.X:8005; <-- this is the apache vhost
}
}
Any ideas?