System/OS
2022.02.03 04:20
[apache2] Redirect HTTP to HTTPS
조회 수 674 댓글 0
첨부 '1' |
|
---|
<VirtualHost *:80>
ServerName example.com
ServerAlias www.example.com
Redirect permanent / https://example.com/
</VirtualHost>
<VirtualHost *:443>
ServerName example.com
ServerAlias www.example.com
Protocols h2 http/1.1
# SSL Configuration
# Other Apache Configuration
</VirtualHost>
<VirtualHost *:80>
ServerName example.com
ServerAlias www.example.com
Redirect permanent / https://example.com/
</VirtualHost>
<VirtualHost *:443>
ServerName example.com
ServerAlias www.example.com
Protocols h2 http/1.1
<If "%{HTTP_HOST} == 'www.example.com'">
Redirect permanent / https://example.com/
</If>
# SSL Configuration
# Other Apache Configuration
</VirtualHost>
[출처] https://linuxize.com/post/redirect-http-to-https-in-apache/
번호 | 분류 | 제목 | 글쓴이 | 날짜 | 조회 수 |
---|---|---|---|---|---|
50 | Etc | 웹 보안 논문 주제 2016 | hooni | 2016.11.28 | 0 |
49 | Etc | 영어. 반드시 외워야 할 영어 숙어 2 | hooni | 2016.07.07 | 6313 |
48 | Etc | 영어. 반드시 외워야 할 단어 | hooni | 2016.07.07 | 1949 |
47 | Etc | 플라스터(Plaster) 수업 내용 | hooni | 2016.05.24 | 0 |
46 | Etc | [eng] 숙제 ㅋㅋㅋ | hooni | 2015.10.14 | 1 |
45 | Etc | 인증서 *.p12 파일을 *.pem 파일로 변환 | hooni | 2015.04.30 | 1804 |
44 | Etc | IPR 특허 관련 | hooni | 2015.04.28 | 0 |
43 | Etc | WM미통기 - 10. 조건부확률 | hooni | 2015.04.20 | 705 |
42 | Etc | 수리통계학 : 표본공간과 사상-1 | hooni | 2015.04.20 | 900 |
41 | Etc | EBS [수학영역] 미적분과 통계 기본 - 정규분포의 의미와 특징은? | hooni | 2015.04.20 | 1001 |
40 | Etc | 아이폰의 터치스크린 정확도 | hooni | 2015.04.01 | 1397 |
39 | Etc | IoT가 만드는 미래와 플랫폼 경쟁력 | hooni | 2014.09.23 | 0 |