기본 로그 Apache 디렉터리를 변경할 수 없습니다.

기본 로그 Apache 디렉터리를 변경할 수 없습니다.

Apache 서버의 기본 디렉터리를 변경하고 싶습니다.

# mkdir new_log
# chmod 755 -R new_log/
# chown -R apache:root new_log/
# semanage fcontext -a -t httpd_log_t "/new_log(/.*)?"
# restorecon -v -R -F  /new_log

하지만 이 디렉토리에 쓰기 권한이 거부되어 httpd 서비스가 작동하지 않습니다.

# ls -Z
drwxr-xr-x. apache root   system_u:object_r:httpd_log_t:s0 new_log

관련 정보