> Apache 에러 로그 메시지
위치 : APACHE_HOME/logs/localhost-error_log
[Thu Sep 26 17:02:51.401841 2013] [core:error] [pid 29603:tid 140488246032128] (13)Permission denied: [client 211.222.111.123:62022] AH00035: access to / denied (filesystem path '/home/webuser/htdocs') because search permissions are missing on a component of the path
> 해당 계정의 디렉토리에 일반 사용자 실행권한을 줌
# chmod 711 /home/webuser
> 계정 초기 생성 시 기본 권한 : drwx------
[web@webuser ~]$ ls -al /home
drwx------. 5 webuser webuser 4096 2013-09-26 19:46 webuser
[web@webuser ~]$ chmod 711 /home/webuser
> 권한 변경후
[web@webuser ~]$ ls -al /home
drwx--x--x. 5 webuser webuser 4096 2013-09-26 19:46 webuser
[web@webuser ~]$ ls -al /home/webuser/
drwxrwxr-x. 3 webuser webuser 4096 2013-09-26 19:46 htdocs
`**해당 웹 디렉토리의 권한을 꼭 775로 바꿔줘야 함**`
# client denied by server configuration
Apache 2.4에서 에러로그(error.log)에 'client denied by server configuration' 오류 발생하며 접속되지 않는 증상
Directory 부분에 Require all granted 으로 설정
# httpd.conf
202
203 AllowOverride none
204 # Require all denied
205 Require all granted
206
353 <Directory "/app/server/apache-2.4.9/cgi-bin">
354 AllowOverride None
355 Options None
356 Require all granted
357
> 모든 요청 허가
Apache 2.2 configuration:
Order allow,deny
Allow from all
Apache 2.4 configuration:
Require all granted
> 모든 요청 거부
Apache 2.2 configuration:
Order deny,allow
Deny from all
Apache 2.4 configuration:
Require all denied
'Tip & Tech > Linux | Unix' 카테고리의 다른 글
mod_rewrite 활성화 (0) | 2019.07.15 |
---|---|
selinux 끄기 (0) | 2019.07.15 |
Linux Shell MOTD(로그인 후 배너) (0) | 2019.07.15 |
Jenkins 다른 계정으로 구동 (0) | 2019.07.15 |
GCC .so만들기 (0) | 2010.10.21 |