1 回答

TA貢獻1815條經驗 獲得超13個贊
我認為這更有可能是 nginx 配置問題。404 not found 表示 403 上沒有任何內容。并不是說 TSL 版本或 SSL 版本不適合您。您可能會從 nginx 收到 400(錯誤請求)或 495(SSL 錯誤)。
像這樣嘗試一下。對此我不確定。但我從未見過 http 和 https 在同一個塊中配置?,F在我不是系統管理員,離它還很遠,但我自己的服務器的設置更像是這樣。我還在其中放置了一行 ssl_protocols 來指定基本上所有這些協議。也許這有幫助。但正如我所說,當您返回 404 時,我認為這不會是 TLS 或 SSL 問題。
server {
listen 80 default_server;
listen [::]:80 default_server;
return 301 https://192.168.0.12$request_uri;
}
server {
listen 443;
ssl on;
ssl_certificate /home/pi/web/localhost.crt;
ssl_certificate_key /home/pi/web/localhost.key;
ssl_ciphers HIGH:!aNULL:!MD5;
#ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
root /var/www/html;
# Add index.php to the list if you are using PHP
index index.html index.htm index.nginx-debian.html;
server_name _;
location /FindMotion/ {
proxy_pass http://localhost:5000/;
proxy_http_version 1.1;
proxy_set_header Connection keep-alive;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Host $http_host;
proxy_set_header X-Forwarded-Proto http;
proxy_set_header X-Forwarded-Path /FindMotion;
}
}
}
- 1 回答
- 0 關注
- 130 瀏覽
添加回答
舉報