Apache 웹서버에서 .htaccess 가 동작하지 않을 때
페이지 정보
작성자 관리자 (61.♡.26.29) 작성일 17-07-12 14:30 조회 4,602 댓글 0본문
아파치 웹서버에서
특정 폴더에 .htaccess 파일을 넣어도 동작하지 않을 때,
아파치 conf 에서 확인해 보아야 할 설정이다.
<Directory "/home/*/public_html">
AllowOverride FileInfo Limit
</Directory>
AllowOverride All 로 해도 되지만,
최소한 AllowOverride FileInfo가 필요하다.
FileInfo 는 짧은 url 을 위한 RewriteEngine 을 사용하기 위해서 필요한 옵션이다.
FileInfo 옵션이 없는 상태에서,
.htaccess 안에서 RewriteEngine 을 사용하면 Internal Server Error 가 나온다.
그런데, FileInfo 만 했을 때는, 그누보드 첨부이미지가 엑박이 뜬다.
All 로 하면 나온다. All 로 하지 않아도, Limit 를 추가하면 나온다.
Limit 는 deny allow 를 사용하기 위한 옵션이다.
그누보드 data 폴더에 있는 .htaccess 에서 deny allow 를 사용하고 있다.
* 참고
https://httpd.apache.org/docs/2.0/ko/howto/htaccess.html
http://zetawiki.com/wiki/하위폴더_.htaccess_설정
http://webdir.tistory.com/178
특정 폴더에 .htaccess 파일을 넣어도 동작하지 않을 때,
아파치 conf 에서 확인해 보아야 할 설정이다.
<Directory "/home/*/public_html">
AllowOverride FileInfo Limit
</Directory>
AllowOverride All 로 해도 되지만,
최소한 AllowOverride FileInfo가 필요하다.
FileInfo 는 짧은 url 을 위한 RewriteEngine 을 사용하기 위해서 필요한 옵션이다.
FileInfo 옵션이 없는 상태에서,
.htaccess 안에서 RewriteEngine 을 사용하면 Internal Server Error 가 나온다.
그런데, FileInfo 만 했을 때는, 그누보드 첨부이미지가 엑박이 뜬다.
All 로 하면 나온다. All 로 하지 않아도, Limit 를 추가하면 나온다.
Limit 는 deny allow 를 사용하기 위한 옵션이다.
그누보드 data 폴더에 있는 .htaccess 에서 deny allow 를 사용하고 있다.
* 참고
https://httpd.apache.org/docs/2.0/ko/howto/htaccess.html
http://zetawiki.com/wiki/하위폴더_.htaccess_설정
http://webdir.tistory.com/178
추천0
댓글목록 0
등록된 댓글이 없습니다.