系统是ubuntu 20.4基于 Docker 部署,参考教程是:基于 Docker 部署 SeafilePro + OnlyOffice(CentOS版)
我是内网部署,开启https后,用IP地址访问能自动跳转https。但是网页没有任何显示。
配置文件如下。请大佬帮忙看看。另外社区版支持Collabora Online吗?
server {
listen 80;
server_name www.ciots.net;
rewrite ^ https://$http_host$request_uri? permanent;
server_tokens off;
}
server {
listen 443 default ssl;
ssl_certificate /shared/ssl/www.ciots.net.crt;
ssl_certificate_key /shared/ssl/www.ciots.net.key;
server_name www.ciots.net;
ssl_session_timeout 5m;
ssl_session_cache shared:SSL:5m;
# secure settings (A+ at SSL Labs ssltest at time of writing)
# see https://wiki.mozilla.org/Security/Server_Side_TLS#Nginx
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_ciphers 'ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-SHA384:ECDHE-ECDSA-AES128-SHA256:ECDHE-RSA-AES256-SHA384:ECDHE-RSA-AES128-SHA256:ECDHE-RSA-AES256-SHA:ECDHE-ECDSA-AES256-SHA:ECDHE-RSA-AES128-SHA:ECDHE-ECDSA-AES128-SHA:DHE-RSA-AES256-GCM-SHA384:DHE-RSA-AES256-SHA256:DHE-RSA-AES256-SHA:DHE-RSA-CAMELLIA256-SHA:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES128-SHA256:DHE-RSA-AES128-SHA:DHE-RSA-SEED-SHA:DHE-RSA-CAMELLIA128-SHA:HIGH:!aNULL:!eNULL:!LOW:!3DES:!MD5:!EXP:!PSK:!SRP:!DSS';
ssl_prefer_server_ciphers on;
proxy_set_header X-Forwarded-For $remote_addr;
add_header Strict-Transport-Security "max-age=31536000; includeSubDomains";
server_tokens off;
location / {
proxy_pass http://127.0.0.1:8000;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Host $server_name;
proxy_set_header X-Forwarded-Proto https;
access_log /var/log/nginx/seahub.access.log;
error_log /var/log/nginx/seahub.error.log;
proxy_read_timeout 1200s;
client_max_body_size 0;
}
location /seafhttp {
rewrite ^/seafhttp(.*)$ $1 break;
proxy_pass http://127.0.0.1:8082;
client_max_body_size 0;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_connect_timeout 36000s;
proxy_read_timeout 36000s;
proxy_request_buffering off;
access_log /var/log/nginx/seafhttp.access.log;
error_log /var/log/nginx/seafhttp.error.log;
}
location /media {
root /opt/seafile/seafile-server-latest/seahub;
}
}
看不出来是什么问题
root@a4b81ec55b9b:/var/log# ls
alternatives.log apt bootstrap.log btmp dpkg.log faillog lastlog nginx syslog tallylog wtmp
root@a4b81ec55b9b:/var/log# cd nginx
root@a4b81ec55b9b:/var/log/nginx# ls
access.log error.log seafdav.access.log seafdav.error.log seafhttp.access.log seafhttp.error.log seahub.access.log seahub.error.log
root@a4b81ec55b9b:/var/log/nginx# more access.log
- 192.168.8.122 [12/May/2021:07:46:03 +0000] “GET / HTTP/1.1” 444 0 “-” “Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.116 Safari/537.36” -
- 192.168.8.122 [12/May/2021:07:46:03 +0000] “GET / HTTP/1.1” 444 0 “-” “Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.116 Safari/537.36” -
- 192.168.8.122 [12/May/2021:07:46:03 +0000] “GET / HTTP/1.1” 444 0 “-” “Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.116 Safari/537.36” -
root@a4b81ec55b9b:/var/log/nginx# ^C
root@a4b81ec55b9b:/var/log/nginx# more access.log
- 192.168.8.122 [12/May/2021:07:46:03 +0000] “GET / HTTP/1.1” 444 0 “-” “Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.116 Safari/537.36” -
- 192.168.8.122 [12/May/2021:07:46:03 +0000] “GET / HTTP/1.1” 444 0 “-” “Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.116 Safari/537.36” -
- 192.168.8.122 [12/May/2021:07:46:03 +0000] “GET / HTTP/1.1” 444 0 “-” “Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.116 Safari/537.36” -
- 192.168.8.122 [12/May/2021:07:46:40 +0000] “GET / HTTP/1.1” 444 0 “-” “Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.116 Safari/537.36” -
- 192.168.8.122 [12/May/2021:07:46:44 +0000] “GET / HTTP/1.1” 444 0 “-” “Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.116 Safari/537.36” -
- 192.168.8.122 [12/May/2021:07:46:44 +0000] “GET / HTTP/1.1” 444 0 “-” “Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.116 Safari/537.36” -
- 192.168.8.122 [12/May/2021:07:46:44 +0000] “GET / HTTP/1.1” 444 0 “-” “Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.116 Safari/537.36” -
- 192.168.8.122 [12/May/2021:07:46:45 +0000] “GET / HTTP/1.1” 444 0 “-” “Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.116 Safari/537.36” -
root@a4b81ec55b9b:/var/log/nginx# more error.log
2021/05/12 07:45:28 [notice] 80#80: signal process started
2021/05/12 07:46:44 [info] 82#82: *5 client closed connection while waiting for request, client: 192.168.8.122, server: 0.0.0.0:80
2021/05/12 07:46:54 [info] 81#81: *10 client closed connection while waiting for request, client: 192.168.8.122, server: 0.0.0.0:80
root@a4b81ec55b9b:/var/log/nginx# more seafhttp.access.log
root@a4b81ec55b9b:/var/log/nginx# more seafhttp.error.log
root@a4b81ec55b9b:/var/log/nginx# more seahub.access.log
root@a4b81ec55b9b:/var/log/nginx# more seahub.error.log
root@a4b81ec55b9b:/var/log/nginx# more seafdav.access.log
root@a4b81ec55b9b:/var/log/nginx# more seafdav.error.log
Java
4
你是不是还配置了其他站点,日志里面是444错误。你的配置里面都使用了域名,但你说是用IP访问的