내가 관리하는 서버에 SSL을 통해 서비스되는 사이트가 있습니다. 나는 또한 WordPress를 설치하고 싶지 않기 때문에 WPEngine을 사용하여 블로그를 제공하고 있습니다. 해당 블로그 페이지는 현재 HTTPS없이 게재되고 있습니다.바니시를 사용하여 WordPress 프록시 (WPEngine에서)
모든 최상위 도메인에 내 URL이 표시되도록하려면 WEPngine 설치에 에 대한 프록시 요청에 대해 바니시를 사용하고 있습니다.
WEPngine의 SSL 인증서가 없으면이 모든 것이 효과적입니다. 그러나 SSL을 사용하여이 작업을 수행하려고하면 301 리디렉션 루프가 발생합니다. WPEngine에서
backend default {
.host = "127.0.0.1";
.port = "8080"; # apache is listening here
}
backend blog {
.host = "wpengine-ip-address";
.port = "80";
}
sub vcl_recv {
if (req.url ~ "^/blog" && req.http.Host ~ "(.*)mytoplevelsite.com") {
set req.backend = blog;
if ((req.url ~ "^/blog/wp-content") || (req.url ~ "^/blog/wp-includes")) {
set req.http.host = "mysite.wpengine.com";
set req.url = regsub(req.url, "^/blog", "");
}
return(pass);
}
}
내가 내 SSL 설치 및 HTTPS를 통해 제공되는 mytoplevelsite.com/blog
를 설정해야하지만, 이것은 301 리디렉션 루프가 발생합니다
는 vcl
은 다음과 같습니다 내. 나는 실행하면 : 내가 여기에 무엇을 할 수 있는지
HTTP/1.1 301 Moved Permanently
Date: Thu, 23 Jun 2016 13:26:07 GMT
Server: Apache
Location: http://mytoplevelsite.com/blog/
Content-Length: 311
Content-Type: text/html; charset=iso-8859-1
HTTP/1.1 301 Moved Permanently
Server: nginx
Content-Type: text/html
Location: https://mytoplevelsite.com/blog/
X-Type: default
Content-Length: 178
Accept-Ranges: bytes
Date: Thu, 23 Jun 2016 13:26:07 GMT
X-Varnish: 1087407254
Age: 0
Via: 1.1 varnish
Connection: keep-alive
... repeat until timeout
모든 아이디어 : curl -Li https://mytoplevelsite.com/blog
내가이 반복해서 볼 수?