0
내 하위 도메인을 통해 nginx 역 프록시를 통해 AWS 웹 콘솔에 액세스하는 방법이 있습니까? 여기 AWS 웹 콘솔 용 Nginx 역방향 프록시 구성
은의 nginx 구성을 사용하고 있습니다입니다 :NetworkError: 400 Bad Request
그리고 난 내 브라우저에서 https://aws1.subdomain.com에 액세스 할 때 아마존의 기본 400 잘못된 요청 페이지를 보여줍니다 :
는server {
listen localhost:443 ssl;
server_name aws1.subdomain.com;
include snippets/proxy_ssl.conf;
location/{
proxy_pass https://console.aws.amazon.com/;
proxy_set_header Host $host;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "Upgrade";
proxy_read_timeout 86400;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-Server $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_redirect off;
proxy_hide_header X-Frame-Options;
}
}
위의 구성은 발생 .
'proxy_set_header 호스트 console.aws.amazon.com'을 사용해도 되나요? –
내가 https://aws1.subdomain.com/에 액세스하려고하면 https://console.aws.amazon.com으로 리디렉션됩니다. 아이디어는 https://aws1.subdomain.com/에 액세스하는 것이지만 여전히 AWS 웹 콘솔을 관리 할 수 있습니다. – psorab
확실하게 말할 수는 없지만 지원하는 기능이 지원되지 않을 수 있습니다. http://mailman.nginx.org/pipermail/nginx/2014-April/043173.html. NGINX가 HTTP 연결 방법을 지원하지 않아야합니다. –