본문 바로가기
Programming/Apache

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

by guru_k 2015. 6. 30.
728x90
반응형

Apache 서버를 사용 중 새로운 HTML스크립트를 업로드하고 페이지 로딩 시 


You don't have permission to access / on this server 라는 Error 가 발생


해결방안 1


 보통 위와 같은 에러 메시지를 인터넷에 검색했을 경우 나오는 해결방안이다.

 /etc/httpd/conf/httpd.conf를 아래와 같이 수정한다.


 <Directory "/">

 Options FollowSymLinks

  AllowOverride None

  Order allow,deny

   Allow from all

</Directory>


 해결방안 2

   

   해결방안 1로도 문제가 해결되지 않아서 이유를 찾던 도중 파일에 대한 권한이 없는 것을 발견

   chmod 644 filename 을 통해 파일에 대한 권한을 부여하여 문제를 해결.








728x90
반응형

댓글