티스토리 뷰

# 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>

 

 

댓글