티스토리 뷰
# vi /etc/httpd/conf.d/vhost.conf
<VirtualHost *:80>
ServerName [도메인]
# http to https
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule .* https://%{SERVER_NAME}%{REQUEST_URI} [R,L]
</IfModule>
</VirtualHost>
<Directory "[DocumentRoot]">
Options FollowSymLinks
AllowOverride ALL
Require all granted
</Directory>
'프로그래밍 > Linux' 카테고리의 다른 글
Linux - node 버전 업데이트 방법 (0) | 2021.08.27 |
---|---|
[Linux] 라우터(route) 기본 개념 이해하기 (7) | 2021.04.20 |
[Linux] 쉘스크립트 - Docker 컨테이너 재시작 (0) | 2021.03.27 |
[Linux] 압축 ( tar , gzip ) (0) | 2019.03.19 |
[Linux] 라우터(route) 확인/추가/삭제 (0) | 2017.07.18 |
댓글