https 上传文件失败 主机没有找到

你好。
使用公网IP在debian stable apache2中配置了https,可以访问,但seafile 6.0.5无法上传文件,显示上传文件失败 主机没有找到。
配置如下:
VirtualHost *:443
ServerName glede

ServerAdmin webmaster@localhost
DocumentRoot /var/www/html

SSLEngine On
SSLCertificateFile /etc/apache2/ssl/cacert.pem
SSLCertificateKeyFile /etc/apache2/ssl/privkey.pem

Alias /media  /home/seafile-server-latest/seahub/media
RewriteEngine On

<Location /media>
    ProxyPass !
    Require all granted
</Location>

ProxyPass /seafhttp http://127.0.0.1:8082
ProxyPassReverse /seafhttp http://127.0.0.1:8082
RewriteRule ^/seafhttp - [QSA,L]

SetEnvIf Request_URI . proxy-fcgi-pathinfo=unescape
SetEnvIf Authorization "(.*)" HTTP_AUTHORIZATION=$1
ProxyPass / fcgi://127.0.0.1:8000/

ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined

/VirtualHost

WEB界面中设置:
SERVICE_URL:https://外网IP
FILE_SERVER_ROOT:https://外网IP/seafhttp

重启服务:
/etc/init.d/apache2 restart
./seafile.sh restart
./seahub.sh restart-fastcgi

chrome调试显示:
https://glede/media/CACHE/css/c8340f180c0b.css Failed to load resource: the server responded with a status of 404 (Not Found)
main.b3772c306948.js:221 OPTIONS https://外网IP/seafhttp/upload-aj/cb6dbbbf-5c1c-4152-8553-ae7fbd21bfe2 net::ERR_INSECURE_RESPONSE

请问怎么回事?多谢!

请看下apache日志,或对比我们官网文档的apache 配置

配置对过几次了
apache error日志中没看到信息
另外apache中的地址为127.0.01和web中的外网地址,可设置对了?

在浏览器访问 https://外网IP/seafhttp 试试,如果能显示空白页面,那说明apache配置成功;否则需要再检查下apache配置

你好,多谢,确实没法显示,页面显示:
Service Unavailable

The server is temporarily unable to service your request due to maintenance downtime or capacity problems. Please try again later.
日志显示:
==> /var/log/apache2/error.log <==
[Tue Nov 15 21:51:41.652037 2016] [proxy:error] [pid 24494:tid 2923363136] (111)Connection refused: AH00957: HTTP: attempt to connect to 127.0.0.1:8082 (127.0.0.1) failed
[Tue Nov 15 21:51:41.652144 2016] [proxy:error] [pid 24494:tid 2923363136] AH00959: ap_proxy_connect_backend disabling worker for (127.0.0.1) for 60s
[Tue Nov 15 21:51:41.652164 2016] [proxy_http:error] [pid 24494:tid 2923363136] [client 211.86.158.73:53286] AH01114: HTTP: failed to make connection to backend: 127.0.0.1
配置对了几次,没发现不同。

目前https://外网IP/seafhttp能显示空白页面了,但还是WEB浏览器无法上载文件,手机客户端和PC客户端可以上载,也可以下载,上载后在WEB中显示的文件名和大小都对,URL地址为类似https://外网IP/lib/da79c884-2f00-4120-bd91-d94d3391f35f/file/My%20Photos/Camera/IMG20161112063457.jpg等,但点击时显示The image could not be loaded,看来是路径不对。
WEB界面配置中为:FILE_SERVER_ROOT https://外网IP/seafhttp

问题原因找到是该上传后的生成的图片目录默认为My Photos,中间有个空格,还在找解决办法

空格是apache 2.4.10 bug导致的,升级到2.4.23-5修复此问题