스마트웹앱콘텐츠전문가/웹서버

[Apache]'Client denied by server configuration' 에러

9D4U 2020. 11. 3. 14:26
728x90
반응형

'어떤 파일 시스템의 접근이 아파치 설정에 의해 거부 당했다'는 에러입니다.

 

[조치] 
(방법1)
특정 디렉토리 차단(block)또는 .htaccess 파일의 deny(v2.2용) 명확한 지시 또는 require(v2.4용) 명확한 지시로 인해 접근이 거부 당했을 수 있다. 
v2.2 :
<Directory ~>
Order deny,allow
Deny from all
</Directory>

-> 변경

<Directory ~>
Order allow,deny
Allow from all
</Directory>


v.2.4 :
<Directory ~>
Require all denied
</Directory>

-> 변경

<Directory ~>
Require all granted
</Directory>

(방법2)

v2.4는 권한 부여 및 인증 프로세스에 중요한 변경 사항이 도입되어 다음 링크로
자세한 내용 확인 추천.(mod_authz_host 및 mod_access_compat에 관한)

 

httpd.apache.org/docs/2.4/upgrading.html

 

Upgrading to 2.4 from 2.2 - Apache HTTP Server Version 2.4

Upgrading to 2.4 from 2.2 In order to assist folks upgrading, we maintain a document describing information critical to existing Apache HTTP Server users. These are intended to be brief notes, and you should be able to find more information in either the N

httpd.apache.org

 

728x90