728x90

You don't have permission to access /index.html on this server.

메시지가 나오면서 Apache 구동을 해도 홈페이지가 보이지 않는다.

cd /var/log/httpd/

cat error_log 를 확인해보니 아래와 같은 메시지가 나온다.

 

httpd.conf 파일에서 홈디렉토리 경로를 /var/www/html 에서 변경해서 그런가 보다.

DocumentRoot "/home/httpd/htdocs"
<Directory "/home/httpd/htdocs">
    Options +FollowSymLinks -Indexes
    AllowOverride All
    Require all granted
    <LimitExcept GET POST>
      Order deny,allow
      Deny from all
    </LimitExcept>
</Directory>

 

# SELinux 상태 확인
sestatus

 

vi /etc/selinux/config
SELINUX=disabled

:wq
재부팅하고 확인해보자.
sestatus

 

를 해주고 나니까 정상적으로 홈페이지가 보인다.

블로그 이미지

Link2Me

,