PayPal在PHP连接失败(Dockerized网站)

在我的PHP网站与贝宝关联的页面redirect不工作通过在Apache错误日志中给出以下内容。 我在Dockerfile中暴露了80端口以及443端口。 其余的东西在网站上工作正常,并且具有相同代码的网站在我的本地apache服务器上正常运行。

* Trying 173.0.82.83... * Connected to api-3t.sandbox.paypal.com (173.0.82.83) port 443 (#0) * ALPN, offering http/1.1 * Cipher selection: ALL:!EXPORT:!EXPORT40:!EXPORT56:!aNULL:!LOW:!RC4:@STRENGTH * successfully set certificate verify locations: * CAfile: /etc/ssl/certs/ca-certificates.crt CApath: /etc/ssl/certs * SSL connection using TLSv1.2 / AES256-SHA256 * ALPN, server did not agree to a protocol * Server certificate: * subject: C=US; ST=California; L=San Jose; O=PayPal, Inc.; OU=PayPal Production; CN=api-3t.sandbox.paypal.com * start date: Jan 14 00:00:00 2016 GMT * expire date: Jan 14 23:59:59 2018 GMT * subjectAltName: api-3t.sandbox.paypal.com matched * issuer: C=US; O=Symantec Corporation; OU=Symantec Trust Network; CN=Symantec Class 3 Secure Server CA - G4 * SSL certificate verify ok. > POST /nvp HTTP/1.1 Host: api-3t.sandbox.paypal.com Accept: */* Content-Length: 655 Content-Type: application/x-www-form-urlencoded * upload completely sent off: 655 out of 655 bytes < HTTP/1.1 200 OK < Date: Mon, 04 Sep 2017 08:07:48 GMT < Server: Apache < X-SLR-RETRY-API: SetExpressCheckout < X-PAYPAL-OPERATION-NAME: SetExpressCheckout < X-PAYPAL-API-RC: < Connection: close < HTTP_X_PP_AZ_LOCATOR: sandbox.slc < Paypal-Debug-Id: 6692e8ec22b4a < Set-Cookie: X-PP SILOVER=name%3DSANDBOX3.API.1%26silo_version%3D1880%26app%3Dappdispatcher_apit%26TIME%3D3691621721%26HTTP_X_PP_AZ_LOCATOR%3Dsandbox.slc; Expires=Mon, 04 Sep 2017 08:37:56 GMT; domain=.paypal.com; path=/; Secure; HttpOnly < Set-Cookie: X-PP-SILOVER=; Expires=Thu, 01 Jan 1970 00:00:01 GMT < Content-Length: 137 < Content-Type: text/plain; charset=utf-8 < * Closing connection 0 

请帮我解决这个错误。

我可以在我的本地Apache中find错误日志,并在成功的情况下,没有任何logging

我正在使用安装在Oracle VM中的Ubuntu 17.04。 我无法在VM中ping我的服务器的paypal沙盒URL。 如果我试图ping我的本地命令提示符的URL,我得到请求超时,尽pipe在我的本地Apache(从XAMP)成功的贝宝连接。