Search Results for 'Forbidden You don’t have permission to access / on this server.'

1 POSTS

  1. 2016.10.14 아파치(Apache) Forbidden You don’t have permission to access / on this server.


CentOS Apache



아파치(Apache)에서 설정 시 webadmin 사용자 추가 후 디폴트로 되어 있는 DocumnetRoot 를 변경(/var/www/html -> /home/webadmin/www/html) 


테스트 시 아래와 같은 에러가 발생


Forbidden You don’t have permission to access / on this server. 



먼저 홈페이지 디렉토리(/var/www/html)을 사용자 디렉토리로 옮겼다는 가정하에 시작합니다.


# chown -R webadmin:webadmin /home/webadmin/www/html

// 사용자와 그룹을 webadmin으로 변경(root 권한)


# vi /etc/httpd/conf/httpd.conf


아래 내용을 추가 기입하세요.


<Directory /Users/mytory/workspace>

   Options FollowSymLinks

   AllowOverride None

   Order deny,allow

   Allow from all

</Directory>



# service httpd restart


이제 홈페이지로 접속 테스트를 해 보니 정상 작동~