GCP HTTP(S) 로드밸런서는 https로의 리다이렉션을 지원하지 않습니다.
그래서 Origin Web Server에 SSL을 적용 하시거나 클라이언트 스크립트에서 리다이렉트를 처리하셔야 합니다.
#클라이언트 처리 방법
1
2
3
4
5
6
|
<script type="text/javascript">
if (location.protocol != 'https:')
{
location.href = 'https:' + window.location.href.substring(window.location.protocol.length);
}
</script>
|
cs |
#오리진 웹서버 SSL 적용방법 (아파치 웹서버를 아래와 같이 설치 --> vm 이미지 만들기 --> 인스턴스 템플릿 생성 --> 인스턴스 그룹 생성 http(s) 로드 밸런서의 백엔드 오리진 서버로 설정 --> 로드밸런서 배포)
[검증완료] apache 서버 ssl 적용 방법 : https://webdir.tistory.com/228
[Ubuntu] 우분투 Apache(아파치) SSL 적용
HTTPS로 시작하는 보안이 강화된 HTTP를 보신적이 있을 겁니다. 국내보다는 국외에서 활발히 사용되고 있는 실정입니다. 관련하여 자세한 이론적인 설명은 아래의 링크들로 대체합니다. http://opentutorials.org/..
webdir.tistory.com
[참고자료]
nginx 서버 ssl 적용 방법 :https://thornelabs.net/posts/google-cloud-https-global-load-balancer-redirect-http-to-https-demo.html
Google Cloud HTTP(S) Global Load Balancer Redirect HTTP to HTTPS Demo
A common configuration for any web serving infrastructure is to redirect all HTTP requests to HTTPS. Because a Google Cloud HTTP(S) Global Load Balancer is a globally available resource comprised of many software defined networking components, configuring
thornelabs.net
'Development' 카테고리의 다른 글
[GCP] 리소스 계층 구조 관리 - Cloud ID 사용한 방법 (0) | 2019.11.07 |
---|---|
[GCP] Docker 설치 및 Google Container Registry 관리 (0) | 2019.11.04 |
[GCP]Internal Load Balancer(=AWS NLB) 구축 및 활용 (0) | 2019.10.15 |
nfs + 파일시스템 마운트하기 (0) | 2019.10.08 |
ubuntu16.04 + apache2 + mod_wsgi + python3-flask + gcp sdk (0) | 2019.10.02 |