아파치 .htaccess ExpiresActive not allowed here



.htaccess 파일에 ExpiresActive 설정을 하고 홈페이지 하위폴더에 업로드하고 브라우저를 열었을 때


Internal Server Error 에러 메시지가 발생한다면


아파치 설정에서


<Directory /home/*/www>

    AllowOverride FileInfo AuthConfig Limit Indexes

</Directory>


AllowOverride 에 Indexes 를 넣어주고 아파치를 재시작 해주면 된다.


이제는 최상위 디렉토리 뿐만 아니라 하위 디렉토리에서도 .htaccess 설정이 적용이 된다.


/.htaccess
/www/.htaccess
/www/htdocs/.htaccess

/www/htdocs/example/.htaccess



참고로 RewriteEngine 같은 지시어가 먹히게 하는 Directory AllowOverride 옵션은 FileInfo 이며, None 으로 하면 disable 의 의미이다.


RewriteEngine 예제 보러가기 https://ivps.tistory.com/71


블로그 이미지

영은파더♥

가상서버호스팅 VPS 리눅스 서버관리 윈도우 IT

,