[ APACHE 서버 ]
sed -i "s/^LoadModule\s*rewrite_module\s*.*//g" /app/server/apache/release/conf/httpd.conf
sed -i '/^<IfModule\s*rewrite_module>/,/<\/IfModule>/d' /app/server/apache/release/conf/httpd.conf
cat <<APACHE_SETTING >> /app/server/apache/release/conf/httpd.conf
LoadModule rewrite_module modules/mod_rewrite.so
<IfModule jk_module>
$(printf '\t')RewriteEngine On
$(printf '\t')RewriteCond %{HTTPS} off
$(printf '\t')RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R,L]
</IfModule>
APACHE_SETTING
'Operating Systems > Linux' 카테고리의 다른 글
[ Linux ] CURL 설치 (0) | 2023.01.23 |
---|---|
[ Linux ] JENKINS 설치 (0) | 2023.01.23 |
[ Linux ] Tomcat 컨테이너 추가 (0) | 2023.01.22 |
[ Linux ] APACHE 서버 설치 (0) | 2023.01.18 |
[ Linux ] APACHE SSL 설정 [ 임시저장 ] (0) | 2022.02.23 |