Moodle / Nextcloud WebDav with Proxy

Moodle / Nextcloud WebDav with Proxy

per Martin Henrich -
Nombre de respostes: 0

Hello,

we had to move our servers (Moodle / Nextcloud // on two virtual appliances) in another DMZ, which only can be connected through a proxy Server.

Before everthing went fine, but now the connection could not be established:

[Tue Nov 02 14:34:11.537270 2021] [php7:warn] [pid 8296] [client XXX:21670] PHP Warning:  fsockopen(): unable to connect to ssl://XXX.de:443 (Connection timed out) in /var/www/html/moodle/lib/webdavlib.php on line 184, referer: https:/XXX/XXX/mod/collaborativefolders/view.php?id=42473

The corresponding function:

function open() {

        // let's try to open a socket

        $this->_error_log('open a socket connection');

        $this->sock = fsockopen($this->_socket . $this->_server, $this->_port, $this->_errno, $this->_errstr, $this->_socket_timeout);

        core_php_time_limit::raise(30);

        if (is_resource($this->sock)) {

            socket_set_blocking($this->sock, true);

            $this->_connection_closed = false;

            $this->_error_log('socket is open: ' . $this->sock);

            return true;

        } else {

            $this->_error_log("$this->_errstr ($this->_errno)\n");

            return false;

        }

    }

The problem: fsockopen doens't support proxy connection.

Is there a workaround or anything we can do?

Thx for your reply 

Martin

Mitjana de qualificacions: -