개발 Q&A

제목 AWS apache2 서버 설정 관련 질문입니다.
카테고리 서버
글쓴이 브레인토스트 작성시각 2017/02/14 18:38:11
댓글 : 2 추천 : 0 스크랩 : 0 조회수 : 11264   RSS

/var/www/html

하위에 서브디렉토리 3개정도의 프로젝트를 운영중인데요.

.htaccess 파일이 각 프로젝트 밑에 하나씩 들어가있고

잘 작동중이였습니다.

 

/etc/apache2/apache2.conf 파일에는

해당 서브디렉토리들이

<Directory /var/www>

Options Indexes FollowSymLinks

AllowOverride All

Require all granted

</Directory>

 

<Directory /var/www/1번프로젝트>

Options Indexes FollowSymLinks

AllowOverride All

Require all granted

</Directory>

 

 

<Directory /var/www/2번프로젝트>

Options Indexes FollowSymLinks

AllowOverride All

Require all granted

</Directory>

 

문제가 있는건 2번 프로젝트인데요 계속해서 not found 에러가 납니다. 그렇다고 하위 디렉토리에 있는 다른 디렉토리가 보이지 않는거두 아닌데요.. 이미지 파일 이런 경로도 다 보입니다.

 

.htacces 파일은 기존 프로젝트들과 같게 설정했습니다.

<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
 RewriteCond %{REQUEST_FILENAME} !^/data/(.&)$
 RewriteRule ^(.*)$ 디렉토리명/index.php/$1 [L]
</IfModule>

대략 이런 형태입니다. 상단에는 aws 설정에 맞게 http에서 https로 리다이렉트 시키는 부분이 들어가있습니다.

 

1번 프로젝트는 잘 작동했는데 2번 프로젝트를 설치해서 들어가려하니 잘안됩니다.

 

apache error로그를 살펴보니

[client 172.31.21.56:9086] AH00124: Request exceeded the limit of 10 internal redirects due to probable configuration error. Use 'LimitInternalRecursion' to increase the limit if necessary. Use 'LogLevel debug' to get a backtrace., referer: https://도메인/프로젝트명/

이런 오류가 계속해서 나와서 로그로 구글링을 해봤는데 딱히 해결되는 부분이 없어 보였습니다..
뭐가 문제일까요 ㅠ
 다음글 mac에 php버전 2개 사용하기? (5)
 이전글 C/S 프로그래밍에 관한 질문입니다 (1)

댓글

브레인토스트 / 2017/02/15 09:55:52 / 추천 0

해결됐습니다.

컨트롤러와 모델에 첫글자가 대문자가 아니였네요 ..;

/ 2017/02/16 11:19:25 / 추천 0
저도 3버전 업뎃하고 몇번 고생했는데 ~ ㅠ_ㅠ