Welcome! Log In Create A New Profile

Advanced

421 Misdirected Request via pass_proxy

Eugene Prokopiev
November 26, 2023 02:34AM
Здравствуйте!

Не получается спроксировать repo.clojars.org:

location /clojars {
proxy_pass https://repo.clojars.org;
}

curl -v http://localhost/clojars/
...
< HTTP/1.1 421 Misdirected Request
...
<
Requested host does not match any Subject Alternative Names (SANs) on
TLS certificate
[f38588ca7dc3f37ec048583198230295986084302bfd4d5c2d944911bd377a95] in
use with this connection.

Visit https://docs.fastly.com/en/guides/common-400-errors#error-421-misdirected-request
for more information.
* Connection #0 to host localhost left intact

Нагуглил в этой же рассылке волшебную директиву proxy_ssl_server_name
on - но получается совсем странная вещь - на localhost/clojars/ мне
уже отдают 200, но в теле совсем не тот html, что на оригинальном
repo.clojars.org

Как это может быть и чего еще может не хватать?

--
WBR,
Eugene Prokopiev
_______________________________________________
nginx-ru mailing list
nginx-ru@nginx.org
https://mailman.nginx.org/mailman/listinfo/nginx-ru
Subject Author Posted

421 Misdirected Request via pass_proxy

Eugene Prokopiev November 26, 2023 02:34AM

Re: 421 Misdirected Request via pass_proxy

Maxim Dounin November 26, 2023 10:56PM

Re: 421 Misdirected Request via pass_proxy

Eugene Prokopiev November 27, 2023 01:32AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 194
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready