http:// 도메인을 https:// 로 이동하기 (포워딩) > 기술자료 | 해피정닷컴

http:// 도메인을 https:// 로 이동하기 (포워딩) > 기술자료

본문 바로가기

사이트 내 전체검색

http:// 도메인을 https:// 로 이동하기 (포워딩) > 기술자료

ClassicASP http:// 도메인을 https:// 로 이동하기 (포워딩)

페이지 정보


본문

SSH 즉, https 서비스를 www 유무중 한개만 서비스를 사용하는 경우에는 아래 2단계의 과정을 거쳐서 연결합니다.

<%
' 도메인에 www 를 무조건 넣거나 빼기
' 참고자료 : https://www.happyjung.com/lecture/146


' 도메인에 http 를 https 로 변경하기
dim nowprotocol
nowprotocol = Request.ServerVariables("HTTPS")
if nowprotocol = "off" then
    ssl_port = ""  ' 433 포트가 아닐때 입력
    if ssh_port = "" then
        %>
        <script type="text/javascript">
            parent.location.href="https://<%=request.ServerVariables("server_name")%><%=request.servervariables("http_url")%>"
        </script>
        <%
    else
        %>
        <script type="text/javascript">
            parent.location.href="https://<%=request.ServerVariables("server_name")%><%=ssl_port%><%=request.servervariables("http_url")%>"
        </script>
        <%
    end if
end if
%>


참고자료
http://rin2ne.tistory.com/169 
https://www.happyjung.com/lecture/146

댓글목록

등록된 댓글이 없습니다.


Total 198건 1 페이지
  • RSS
기술자료 목록
198
ClassicASP   2586  2023-09-14 08:38  
197
ClassicASP   4264  2021-11-01 02:08 ~ 2021-11-01 02:40  
196
ClassicASP   9111  2018-03-28 18:12 ~ 2018-03-28 20:59  
195
ClassicASP   8993  2018-03-16 04:51 ~ 2018-03-16 04:56  
194
ClassicASP   11015  2018-03-12 05:29  
193
ClassicASP   8856  2018-02-23 14:08  
192
ClassicASP   11433  2017-12-27 18:00  
191
ClassicASP   15016  2017-09-13 23:26  
열람
ClassicASP   11910  2017-08-30 07:34 ~ 2021-02-26 16:47  
189
ClassicASP   12339  2016-10-28 17:19 ~ 2018-08-24 16:00  
188
ClassicASP   11228  2016-08-18 11:57  
187
ClassicASP   17307  2016-05-28 00:20  
186
ClassicASP   22492  2016-03-09 22:31  
185
ClassicASP   17587  2016-02-25 08:45  
184
ClassicASP   13414  2016-02-25 01:04  
183
ClassicASP   19302  2016-02-25 00:52 ~ 2017-01-13 00:00  
182
ClassicASP   15077  2016-02-25 00:48  
181
ClassicASP   17545  2016-02-25 00:16 ~ 2016-02-26 00:00  
180
ClassicASP   12226  2016-01-26 03:24  
179
ClassicASP   10201  2016-01-22 15:58  

검색

해피정닷컴 정보

회사소개 회사연혁 협력사 오시는길 서비스 이용약관 개인정보 처리방침

회사명: 해피정닷컴   대표: 정창용   전화: 070-7600-3500   팩스: 042-670-8272
주소: 서울센터 (08393) 서울시 구로구 디지털로32가길 16 파트너스타워2차 1206-280호
        대전센터 (34368) 대전시 대덕구 대화로 160 대전산업용재유통단지 지원1동 205호
개인정보보호책임자: 정창용   사업자번호: 119-05-36414
통신판매업신고: 2014-서울구로-0074 [사업자등록확인]  
Copyright 2001~2024 해피정닷컴. All Rights Reserved.