1. 웹서버의 디렉토리에 권한이 없는경우
웹루트가 /home/aaa/bbb/ccc인경우
hosting, aaa, bbb, ccc 모두 실행권한(755 또는 701)이 있어야한다.
chmod 755 /home/hosting
chmod 755 /home/hosting/aaa
chmod 755 /home/hosting/aaa/htdocs
2. 웹서버 설정파일 셋팅 문제 (httpd.conf)
<Directory />
Options FollowSymLinks
AllowOverride None
Order deny, allow
Allow from all
</Directory>
빨간 글자 부분이 Deny from all 로 되어 있다면 위처럼 변경하고 웹서버를 재시작
특정 ip접속을 막고 싶다면
<Directory />
Options FollowSymLinks
AllowOverride None
Order deny, allow
Deny from aaa.bbb.ccc.ddd
Allow from all
</Directory>
'Apache' 카테고리의 다른 글
apache httpd 웹 서버 로그 권한설정 (0) | 2017.09.07 |
---|