solo 页面无法正常加载
相关帖子
-
solo 启动命令:
docker run --detach --name solo --network=host \ --env RUNTIME_DB="MYSQL" \ --env JDBC_USERNAME="root" \ --env JDBC_PASSWORD="123456" \ --env JDBC_DRIVER="com.mysql.cj.jdbc.Driver" \ --env JDBC_URL="jdbc:mysql://127.0.0.1:3306/solo?useUnicode=yes&characterEncoding=UTF-8&useSSL=false&serverTimezone=UTC" \ b3log/solo --listen_port=8080 --server_scheme=https --server_host=www.rainsheep.top --server_port=
访问方式:www.rainsheep.top
nginx 启动命令:
docker run -d -p 80:80 -p 443:443 --name nginx \ -v /dockerData/nginx/conf/nginx.conf:/etc/nginx/nginx.conf \ -v /dockerData/nginx/conf/conf.d:/etc/nginx/conf.d \ -v /dockerData/nginx/ssl:/ssl/ \ -v /dockerData/nginx/www:/usr/share/nginx/html \ -v /dockerData/nginx/logs:/var/log/nginx nginx
1 回复 - 其他回帖
-
-
这是 nginx 的配置文件:
upstream backend { server localhost:8080; } server { listen 443; server_name www.rainsheep.top; access_log off; ssl on; ssl_certificate /ssl/3118615_rainsheep.top.pem; ssl_certificate_key /ssl/3118615_rainsheep.top.key; ssl_session_timeout 5m; ssl_protocols TLSv1 TLSv1.1 TLSv1.2; ssl_ciphers ECDHE-RSA-AES128-GCM-SHA256:HIGH:!aNULL:!MD5:!RC4:!DHE; ssl_prefer_server_ciphers on; location / { #这样写的话,可以访问 proxy_pass http://www.rainsheep.top:8080; #这样写的话,不能访问 proxy_pass http://backend$request_uri; proxy_set_header Host $http_host; proxy_set_header X-Real-IP $remote_addr; client_max_body_size 10m; } }
1 回复 -
不是主题的问题,看上去可能是 NGINX 配置有问题。确定一下是否加了这句:
proxy_set_header Host $http_host;
2 回复 - 查看全部回帖