solo 页面无法正常加载
相关帖子
-
- 其他回帖
-
这是 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 回复 -
Leif160519 • • 1 • 1 评论
location / { proxy_set_header Host $http_host; proxy_pass http://127.0.0.1:8080; }
1 回复这样写就 OK 了,反正不知道为何,之前只有第二句都是可以的,更新了新的镜像之后,第一句必须有才行 - 查看全部回帖