CI 묻고 답하기

제목 보안인증서 설치 후 접속이 되질 않습니다.
카테고리 CI 2, 3
글쓴이 perfume 작성시각 2023/05/12 14:21:27
댓글 : 9 추천 : 0 스크랩 : 0 조회수 : 3407   RSS

이전까지(http)는 index.php 죽이기 후 접속에 문제가 없었습니다.

그런데 이번에 보안인증서를 설치후 접속하려 했더니 페이지를 찾을 수 없다고 나오더라구요.

그런데 주소에 index.php 를 넣고 해보니 잘 접속이 됩니다.

 

https 환경에서 index.php 죽이기 어떻게 해야 하나요?

검색해봐도 찾기가 힘들어서 질문 글 남깁니다.

 

참고로 .htaccess 내용입니다.

<IfModule mod_rewrite.c>

RewriteEngine On   

RewriteBase /   

RewriteCond $1 !^(index\.php|images|captcha|data|include|uploads|robots\.txt)   

RewriteCond %{REQUEST_FILENAME} !-f   

RewriteCond %{REQUEST_FILENAME} !-d   

RewriteRule ^(.*)$ /index.php/$1 [L]

</IfModule>

 다음글 this 관련 (1)
 이전글 도메인/@아이디 이렇게 셋팅하고 싶은데요. (1)

댓글

변종원(웅파) / 2023/05/12 16:04:02 / 추천 0
보안인증서를 어떻게 설치했고 아파치 셋팅은 어떻게 했는지 알수가 없어서 현재 내용만으로는 답을 못합니다
perfume / 2023/05/12 17:04:37 / 추천 0

카페24에 설치요청했구요,

<VirtualHost *:80>

    DocumentRoot "/home/xxxxxxxx"

    ServerName xxxxxxxx

    ServerAlias www.xxxxxxxx.kr

    ErrorLog "logs/xxxxxxxx.kr-error_log"

    CustomLog "logs/xxxxxxxx.kr-access_log" common

<Directory "/home/xxxxxxxx">

    Options FollowSymLinks

    AllowOverride All

    Require all granted

</Directory>

</VirtualHost>

 

이렇게 되어 있다고 합니다.

변종원(웅파) / 2023/05/12 17:49:46 / 추천 0
443 포트는 없는데 cafe24에서 80으로 포워딩해주는건가요?
perfume / 2023/05/12 17:50:34 / 추천 0
그런것 같습니다.
perfume / 2023/05/12 17:51:01 / 추천 0
카페24에 문의해봐도 정확히 모르더라구요.
perfume / 2023/05/12 17:55:21 / 추천 0

그런데 logs폴더의 log파일을 보니 

INFO - 2023-05-12 17:54:03 --> File loaded: /home/xxxxxx/application/views//common/footer.php

이렇게 / 슬래쉬가 두 개가 들어가 있는데 이것때문에 그러는걸까요? 만약 그렇다면 이건 어떻게 해야 하죠?

perfume / 2023/05/12 17:56:57 / 추천 0

root폴더의 htaccess에는

<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
RewriteCond $1 !^(index\.php|src|uploads|robots\.txt|favicon\.ico)
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?/$1 [QSA,L]
</IfModule>

이렇게 되어 있습니다.

perfume / 2023/05/12 17:57:48 / 추천 0
https 설정하기 전에도 저렇게 슬래쉬가 두개 들어가 있군요.
perfume / 2023/05/12 17:59:01 / 추천 0
htaccess 를 수정하면 바로 반영이 되나요? 아니면 좀 시간이 걸리나요?