mod_bandwidth 질문입니다^^
작성자 정보
- 이서영 작성
- 작성일
컨텐츠 정보
- 1,233 조회
- 0 추천
- 목록
본문
몇가지 하다가 안되는 점이 있어 이렇게 문의를 드립니다.
mod_bandwidth(트래픽 제한, 접속자당 제한)
에서
/usr/local/apache/bin/apxs -i -a -c mod_bandwidth.c
로 설치까지 완료했습니다.
그담 httpd.conf 에서 설정방법을 모르겠습니다.
초보자라 어느줄에 추가해야될지 막막하네요.
BindAddress *
#
# Dynamic Shared Object (DSO) Support
#
# To be able to use the functionality of a module which was built as a DSO you
# have to place corresponding `LoadModule' lines at this location so the
# directives contained in it are actually available _before_ they are used.
# Please read the file http://httpd.apache.org/docs/dso.html for more
# details about the DSO mechanism and run `httpd -l' for the list of already
# built-in (statically linked and thus always available) modules in your httpd
# binary.
#
# Note: The order in which modules are loaded is important. Don't change
# the order below without expert advice.
#
# Example:
# LoadModule foo_module libexec/mod_foo.so
LoadModule bandwidth_module libexec/mod_bandwidth.so
기본적으로 이건
LoadModule bandwidth_module libexec/mod_bandwidth.so
이렇게 이곳에 있더군요.
기본적으로 /tmp/apachebw , /tmp/apachebw/link , /tmp/apachebw/master 이렇게 생성한다.
그후 이렇게 아래 명령어 대로 이렇게 폴더를 만들었습니다.
이렇게 한후
그담은 어디 줄에 어느 것을 추가해줘야하나요??
LoadModule bandwidth
요기 밑에줄에
# 대여폭 제한
BandWidthModule On
이렇게 추가도 해보고
#
# UserDir: The name of the directory which is appended onto a user's home
# directory if a ~user request is received.
#
<IfModule mod_userdir.c>
UserDir html
</IfModule>
<IfModule mod_bandwidth.c>
BandWidthModule On
<Directory /free/home>
BandWidth all 54
</Directory>
</IfModule>
#BanWidthDataDir: /tmp/apachebw
<Directory /free/home>
BandWidth all 54
</Directory>
에도 이렇게 추가해봤습니다.
이렇게해도 먹히질 않더군요 ㅜ.ㅜ
/free/home/dolforum/html
에 있는 사용자에게 150KB 로 제한하려고 하는데
도움을 부탁드립니다.
트래픽 제한처럼
<VirtualHost 220.95.232.106>
DocumentRoot
ThrottlePolicy Volume 1000M 1d
CustomLog logs/access_log vcommon env=!CodeRed
</VirtualHost>
이안에다가 추가해줘야하는건지 ㅠ.ㅠ
관련자료
-
이전
-
다음