我正在尝试使用 apache2 和 vhosts 在 ubuntu 服务器后面设置一个 OSX 服务器,该服务器使用 proxypass 将请求发送到我的 OSX 服务器。大多数请求都按其应有的方式工作,但我无法使放置请求工作,出现以下错误。这是通过curl得到的结果,但它说的是同样的事情。
代理服务器无法处理请求 PUT /devicemanagement/api/device/mdm_checkin
这是我使用的命令
卷曲-k -X PUT“https://mysupercoolserver.xyz/devicemanagement/api/device/mdm_checkin“ -d 签入数据.plist
以下是我的虚拟主机配置
<VirtualHost *:80>
ServerName mysupercoolserver.xyz
ProxyPass / http://10.0.1.40/
ProxyPassReverse / http://10.0.1.40/
ProxyPreserveHost on
<Location "/">
Require all granted
</Location>
</VirtualHost>
<VirtualHost *:443>
ServerName mysupercoolserver.xyz
SSLEngine On
SSLProxyEngine On
ProxyRequests Off
SSLProxyCheckPeerCN off
SSLProxyCheckPeerExpire off
SSLProxyCheckPeerName off
SSLInsecureRenegotiation on
SSLProxyVerify none
SSLVerifyClient none
SSLCertificateFile /etc/ssl/mysupercoolserver_xyz.crt
SSLCertificateKeyFile /etc/ssl/mysupercoolserver_xyz.key
SSLCertificateChainFile /etc/ssl/mysupercoolserver_xyz.ca-bundle
ProxyPass / https://10.0.1.40/ retry=1 acquire=3000 timeout=600 Keepalive=On
ProxyPassReverse / https://10.0.1.40/
Timeout 2400
ProxyTimeout 2400
ProxyBadHeader Ignore
ProxyPreserveHost on
<Location "/">
Require all granted
</Location>
</VirtualHost>
<VirtualHost *:1640>
ServerName mysupercoolserver.xyz
ProxyPass / http://10.0.1.40:1640/
ProxyPassReverse / http://10.0.1.40:1640/
ProxyPreserveHost on
<Location "/">
Require all granted
</Location>
</VirtualHost>
<VirtualHost *:2195>
ServerName mysupercoolserver.xyz
ProxyPass / http://10.0.1.40:2195/
ProxyPassReverse / http://10.0.1.40:2195/
ProxyPreserveHost on
<Location "/">
Require all granted
</Location>
</VirtualHost>
我可以在这里改变什么来解决这个问题吗?https:// 用于下载配置文件和证书,我知道其他端口也可以工作,因为请求正在通过。