CI 묻고 답하기

제목 괜히 서버에 JSP 랑 PHP 다 셋팅 해뒀다가 CI 에서 htaccess 사용 못하게 됏네요 ㅠㅠ
글쓴이 터프키드 작성시각 2009/12/09 08:55:47
댓글 : 3 추천 : 0 스크랩 : 0 조회수 : 24918   RSS
예전에 개인서버 구축하면서 JSP도 해보고자 Apache+Tomcat+PHP+JSP .... 등 설치해서 mod_proxy_ajp 인가
설정했었습니다.

CI 에서 .htaccess 예전에 사용하던거 그대로 사용하는데 계속 안되길래
로그 파일을 봤더니..

192.168.0.1 - - [09/Dec/2009:08:23:47 +0900] [xx.abc.net/sid#b8239078][rid#b841b110/initial] (1) pass through /
192.168.0.1 - - [09/Dec/2009:08:23:47 +0900] [xx.abc.net/sid#b8239078][rid#b841d118/initial] (2) init rewrite engine with requested uri /
192.168.0.1 - - [09/Dec/2009:08:23:47 +0900] [xx.abc.net/sid#b8239078][rid#b841d118/initial] (3) applying pattern '(.*)' to uri '/'
192.168.0.1 - - [09/Dec/2009:08:23:47 +0900] [xx.abc.net/sid#b8239078][rid#b841d118/initial] (4) RewriteCond: input='/' pattern='.jsp' => not-matched

이렇게 계속 .jsp 패턴을 찾네요
서버 구축도 이래저래 보고 해서 어딜 수정해야되는지도 모르겟고;
그냥 서버 밀고 다시 설치해서 APM만 설치해야 할까봅니다 ㅠㅠ

혹시 같은 서버에서 APACHE랑 TOMCAT 연동해서 사용하면서 CI에서도 Rewrite module 사용하시는 분 계신가요?

 다음글 table Lock문의드립니다. (2)
 이전글 Client Side Session (1)

댓글

양승현 / 2009/12/09 09:48:06 / 추천 0

가상호스트 딴에서 특정 호스트만 rewrite module를 사용하도록 하면 될듯 한데요.

<VirtualHost *:80>
    DocumentRoot "D:/works_php/~/public_html"
    ServerName localhost2
    AddDefaultCharset utf-8
    <IfModule mod_rewrite.c> 
   RewriteEngine On 
      
   RewriteCond %{REQUEST_FILENAME}       !-f
   RewriteCond %{REQUEST_FILENAME}       !-d
   RewriteCond %{REQUEST_URI} !^/images/(.*)$
   RewriteCond %{REQUEST_URI} !^/include/(.*)$
   RewriteCond %{REQUEST_URI} !^/data/(.*)$
   RewriteCond %{REQUEST_URI} !^/layouts/(.*)$
   RewriteCond %{REQUEST_URI} !^/views/(.*)$
   RewriteCond %{REQUEST_URI} !^/plugins/(.*)$
   RewriteCond %{REQUEST_URI} !^/captcha/(.*)$

   RewriteRule ^(.*)$ /index.php/$1 [L] 
 </IfModule> 
 <IfModule mod_security.c> 
   SecFilterEngine Off 
   SecFilterScanPOST Off 
 </IfModule>
</VirtualHost>

요로코롬..
터프키드 / 2009/12/10 16:18:00 / 추천 0
우기파파님 답변 감사드립니다~! ^^
정상적으로 돌아갑니다 ㅠ.ㅠ

왜 .htaccess 파일로 설정했을땐 안되고; 가상호스트에서 하니까 될까요 ㅎㅎ
순서에 의한것이라고 생각되지만 자세한것을 잘 모르겠는데요
어쨌든 잘 됩니다! 정말 감사드려요(__)
양승현 / 2009/12/16 12:15:11 / 추천 0

생각하신대로 순서의 의한것.. ^^;