@sdasd333423523563674y6

Nginx proxy_pass SSL :wrong version number как исправить?

Error Code: 500:
2023/04/30 09:55:29 [error] 4277#4277: *54 SSL_do_handshake() failed 
(SSL: error:0A00010B:SSL routines::wrong version number) while SSL handshaking to upstream, 
client: 192.168.0.1, server: myserver.com, request: "GET / HTTP/2.0", 
upstream: "https://192.168.0.36:8081/", host: "myserver.com"


192.168.0.1 - router

192.168.0.37 - nextcloud сервер на HTTP нормально работает все

192.168.0.36 - webserver nginx

www->192.168.0.36 proxy_pass to -> 192.168.0.37 nextcloud

nginx.ssl.conf:
server {
    listen      192.168.0.37:443 ssl;
    server_name myserver.com ;
    error_log   /var/log/apache2/domains/myserver.com.error.log error;

    ssl_certificate     /home/user1/conf/web/myserver.com/ssl/myserver.com.pem;
    ssl_certificate_key /home/user1/conf/web/myserver.com/ssl/myserver.com.key;
    ssl_stapling        on;
    ssl_stapling_verify on;

    # TLS 1.3 0-RTT anti-replay
    if ($anti_replay = 307) { return 307 https://$host$request_uri; }
    if ($anti_replay = 425) { return 425; }

    include /home/user1/conf/web/myserver.com/nginx.hsts.conf*;

    location ~ /\.(?!well-known\/|file) {
        deny all;
        return 404;
    }

    location / {
        proxy_pass https://192.168.0.36:8081;

    location /error/ {
        alias /home/user1/web/myserver.com/document_errors/;
    }
    proxy_hide_header Upgrade;

    include /home/user1/conf/web/myserver.com/nginx.ssl.conf_*;
}


добовлял в location

proxy_ssl_name myserver.com;

proxy_ssl_server_name on;

непомогло
  • Вопрос задан
  • 497 просмотров
Пригласить эксперта
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Войти через центр авторизации
Похожие вопросы