mod_throttle 설치해보신분 있으세요?
mod_throttle 설치후 아래와같이 추가하였는데 아파치를 실행하면
/etc/rc.d/init.d/apache restart: configuration broken, ignoring restart
/etc/rc.d/init.d/apache restart: (run 'apachectl configtest' for details)
에러가 뜹니다.
ThrottlePolicy Volume 100M 1d 제거하면 에러가 안뜨고 아파치가 리스타트 되구요..
httpd.conf파일 추가내용:
<IfModule mod_throttle.c>
ThrottlePolicy none
<Location /throttle-status>
SetHandler throttle-status
Order deny,allow
Deny from all
Allow from all
</Location>
<Location /throttle-me>
SetHandler throttle-me
Order deny,allow
Deny from all
Allow from all
</Location>
<Location /~*/throttle-me>
SetHandler throttle-me
Order deny,allow
Deny from all
Allow from all
</Location>
</IfModule>
<VirtualHost 61.251.165.116>
ServerAdmin cha5501@hotmail.com
DocumentRoot /home/cha5501/public_html
ServerName vla.co.kr
ThrottlePolicy Volume 100M 1d
</VirtualHost>
/etc/rc.d/init.d/apache restart: configuration broken, ignoring restart
/etc/rc.d/init.d/apache restart: (run 'apachectl configtest' for details)
에러가 뜹니다.
ThrottlePolicy Volume 100M 1d 제거하면 에러가 안뜨고 아파치가 리스타트 되구요..
httpd.conf파일 추가내용:
<IfModule mod_throttle.c>
ThrottlePolicy none
<Location /throttle-status>
SetHandler throttle-status
Order deny,allow
Deny from all
Allow from all
</Location>
<Location /throttle-me>
SetHandler throttle-me
Order deny,allow
Deny from all
Allow from all
</Location>
<Location /~*/throttle-me>
SetHandler throttle-me
Order deny,allow
Deny from all
Allow from all
</Location>
</IfModule>
<VirtualHost 61.251.165.116>
ServerAdmin cha5501@hotmail.com
DocumentRoot /home/cha5501/public_html
ServerName vla.co.kr
ThrottlePolicy Volume 100M 1d
</VirtualHost>
|
댓글을 작성하시려면 로그인이 필요합니다.
로그인
댓글 10개
설정화일은 저부분만 보면 문제 없는듯 보이는데
<Location /throttle-status>
SetHandler throttle-status
Order deny,allow
Deny from all
Allow from 접속할IP
</Location>
로 수정하시고 사용하시면 될겁니다.
http://vla.co.kr/throttle-status
모듈설치가 정상적이라면 conf에 아래부분이 있는지 확인해보시길 바랍니다.
LoadModule throttle_module libexec/mod_throttle.so
AddModule mod_throttle.c
-bash: httpd: command not found
http_core.c
mod_so.c
suexec: disabled; invalid wrapper /usr/local/apache/bin/suexec