[ Server ][ Linux ] centos7 apm(Apache+php+mysql) 설치( mod_evasive ) 후 짧은시간에 새로고침시 다운현상 > linux

본문 바로가기
사이트 내 전체검색

linux

[ Server ][ Linux ] centos7 apm(Apache+php+mysql) 설치( mod_evasive ) 후 짧은시간에 새로고침시 다운현상

페이지 정보

작성자 웹지기 댓글 1건 조회 9,000회 작성일 19-04-30 17:58

본문

아파치님의 AAI-master를 설치하고 계정을 만들어 홈페이지를 접속할 때 

새로고침을 빠르게 하다보면 403 오류를 뱉더라.

왜 그런지 검색을 해보니

mod_evasive 설치가 되면서 자동으로 설정이 된다.

아파치님께서 따로 설정하신건 없는 듯..................

파일에 들어가서 확인을 해보니................

vim /etc/httpd/conf.d/mod_evasive.conf

 

# mod_evasive configuration

LoadModule evasive20_module modules/mod_evasive24.so


<IfModule mod_evasive24.c>

    # The hash table size defines the number of top-level nodes for each

    # child's hash table.  Increasing this number will provide faster

    # performance by decreasing the number of iterations required to get to the

    # record, but consume more memory for table space.  You should increase

    # this if you have a busy web server.  The value you specify will

    # automatically be tiered up to the next prime number in the primes list

    # (see mod_evasive.c for a list of primes used).

    DOSHashTableSize    3097


    # This is the threshhold for the number of requests for the same page (or

    # URI) per page interval.  Once the threshhold for that interval has been

    # exceeded, the IP address of the client will be added to the blocking

    # list.

    DOSPageCount        2


    # This is the threshhold for the total number of requests for any object by

    # the same client on the same listener per site interval.  Once the

    # threshhold for that interval has been exceeded, the IP address of the

    # client will be added to the blocking list.

    DOSSiteCount        50


    # The interval for the page count threshhold; defaults to 1 second

    # intervals.

    DOSPageInterval     1


    # The interval for the site count threshhold; defaults to 1 second

    # intervals.

    DOSSiteInterval     1

 


      # The blocking period is the amount of time (in seconds) that a client will

      # be blocked for if they are added to the blocking list.  During this time,

      # all subsequent requests from the client will result in a 403 (Forbidden)

      # and the timer being reset (e.g. another 10 seconds).  Since the timer is

      # reset for every subsequent request, it is not necessary to have a long

      # blocking period; in the event of a DoS attack, this timer will keep

      # getting reset.

      DOSBlockingPeriod   30


--------- 생략 -------------

다음과 같은 내용중에서 DOSPageCount 2 를 조금 더 여유있게 수정해주고

centos7의 httpd를 재시작 해주면

페이지 새로고침에서 403페이지가 보이지 않는다.

 

추천0 비추천0

댓글목록

장승원님의 댓글

장승원 작성일

DOSPageCount 100
DOSSiteCount 100
DOSPageInterval 1
DOSSiteInterval 1
DOSBlockingPeriod 30

Total 103건 3 페이지
  • 73 [ Server ][ Linux ] 리눅스 파일만들기, 파일옮기기,폴더옮기기, 복사하기, 화면 지우기
  • 리눅스 파일만들기, 파일옮기기, 복사하기, 화면 지우기mv - 이름변경 및 이동을 담당mv 원본파일 대상파일예를들어 test.txt라는 파일이 있다고 치고 나는 /home 디렉토리로 옮기고 싶다면mv test.txt /home로 옮길수 있다.만약 mv test.txt test1.txt라고 한다면 기존의 파일은 사라지고 이름이 변경되게 된다.cp - 파일이나 디렉토리를 다른파일 또는 다른 디렉토리로 복사를 수행한다.cp 원본파일 대상파일cp test.txt /home 이런식으로 사용한다면 test....
  • 웹지기 09-28 10554 0 0 댓글 0
  • 72 [ Server ][ Linux ] CentOS 7 설치 및 설정하기 사용자 생성시 디렉토리(public_h…
  • 계정생성시 디렉토리와 기본 파일을 자동으로 추가하게 설정. 기본폴더 즉 /etc/skel 디렉토리 하단에 public_html을 만들고 public_html하단에 index.html과 같은 기본 파일을 만들어서 확인할 수 있게 해준다 /etc/skel/public_html/index.html(php) 와 같이 만들어주면 계정생성시 자동으로 디렉토리와 파일이 추가된다. [이 게시물은 웹지기님에 의해 2019-03-15 15:33:17 knowledge에서 이동 됨]
  • 웹지기 12-10 10513 0 0 댓글 0
  • 71 [ Server ][ Linux ] CentOS 7 apm auto install 설치 이후 phpMyAdm…
  • 일반적으로 인터넷에 올라와있는 방법으로 했더니 오류가 발생한다. Error: Package: php-recode-5.4.45-16.el7.remi.x86_64 (remi) Requires: php-common(x86-64) = 5.4.45-16.el7.remi Installed: php-common-7.2.13-2.el7.remi.x86_64 (@remi-php72) php-common(x86-64) = 7.2.13-2.el7.remi...
  • 웹지기 12-11 10343 0 0 댓글 0
  • 70 [ Server ][ Linux ][ Software ] ssh 사용법 및 기본 명령어
  • 기본적인 명령어..-&gt; login유닉스 시스템은 기본적으로 multi-user개념에서 시작하였기 때문에 시스템을 이용하기 위해서는 반드시 로그인을 하셔야 합니다.로그인은 PC 통신에서도 많이 사용되어져 왔기 때문에 그 개념 설정에 그다지 어려움이 없을 것입니다.흔히 말하는 ID를 입력하는 과정입니다. 유닉스 시스템에서는 영문자의 대소문자 구별이 엄격합니다.이점을 주의 하시길 바랍니다. (login 의 반대는 logout 또는 exit 또는 ctrl-D)-&gt; passwd...
  • 웹지기 10-01 10266 0 0 댓글 0
  • 69 [ Server ][ Linux ] centos7 kloxo-mr7 install ( 설치 )
  • Kloxo-MR 은 웹 서버 , MySQL 및 PHP 를 수동으로 설치 하지 않으려는 사용자를 위해 무료 웹 호스팅 / 서버 제어판 의 또 다른 대안입니다 . 이 소프트웨어는 기본적으로 LXCenter 의 원래 Kloxo CP 포크입니다 . Kloxo-MR의 MR 부분은 Mustafa Ramadhan입니다. Mustafa Ramadhan은 포크를 한 사람으로 이 진정한 수정 버전을 향상시키고 개발합니다. Kloxo - 마스터 기능 세트가 포함되어 있습니다 : Redhat / Cent...
  • 웹지기 06-24 10213 0 0 댓글 0
+1
  • 68 [ Server ][ Linux ] centos7 java ( jdk )설치 및 설정
  • @wget을 통해서 설치하므로 wget 설치 # yum install -y wget @다운로드 페이지로 이동해서 다운받을 버젼을 확인한다. https://www.oracle.com/technetwork/java/javase/downloads/index.html @설치된 리눅스의 비트수를 확인하고 거기에 맞는 버젼을 다운받아야 한다 # getconf LONG_BIT @다운로드를 눌러 페이지를 이동한후 승인을 눌러준 후 환...
  • 웹지기 03-18 10155 0 0 댓글 0
+8
  • 66 [ Server ][ Linux ] CentOS 7 설치 및 설정하기 두번째 CentOS7 설치
  • 만들어진 USB로 부팅을 한다. 부팅 USB가 없다면https://funyphp.com/archive/knowledge/106 부분을 따라서 한다. Install CentOS7 을 선택한다. 언어설정에서 한국어를 선택한다. 먼저 네트워크 및 호스트명으로 이동해서 네트워크를 설정한다. 다음 설치대상에서 파티션을 설정한다. 소프트웨어 선택은 최소설치다. 이더넷을 켜고 설정을 통해서 ip를 자동 또는 수동 조정이 가능하다. 본인의 ip를 잘 기억해서 기본 설치 이외...
  • 웹지기 12-10 9801 0 0 댓글 0
  • 65 [ Server ][ Linux ] CentOS7 telnet 설치 및 테스트
  • 설치 확인 # telnet #bash: telnet: command not found 이렇게 뜨면 텔넷이 설치가 안되어 있는 것이다. 설치해 주자 # yum -y install telnet # ....................................... #Installed: #telnet.x86_64 1:0.17-64.el7 #Complete! 정상 설치 되면 위처럼 뜬다. 실행해 보자 ...
  • 웹지기 12-17 9793 0 0 댓글 0
  • 64 [ Server ][ Linux ] ubuntu ruby install, git install, 우분투에서…
  • 룻트폴더로 이동 :cd ~ :ruby --version 버젼이 나오지 않으면 설치가 되어있지 않는 것이다. :sudo apt-get update :sudo에 대한 비밀번호 입력 업데이트가 진행된다. apt-get 명령을 통해 rbenv 와 ruby 를 설치한다. :apt-get install git-core curl zlib1g-dev build-essential libssl-dev libreadline-dev libyaml-dev libsqlite3-dev sqlite3 libxm...
  • 웹지기 12-05 9791 0 0 댓글 0
+1
  • 63 [ Server ][ Linux ] CentOS 7 설치 및 설정하기 네번째 서버에 apm설치(httpd, …
  • APM 설치를 진행한다. 간편한 작업을 위해https://sir.kr/so_server/1945 apm auto installer을 다운받습니다. 압축을 푸시면 APM 사용 설명서.txt가 포함되어 있습니다. 이부분을 읽고 따라하면 됩니다.(간단함) 저는 root로 접속해서 APMinstaller.sh를 퍼미션 변경 후 실행했습니다. 설치가 끝나고 php버젼을 확인해 보았습니다. 오류없이 설치가 잘 마무리가 되고 Complete! 라는 내용이 떳네요. php 버젼에 7.2....
  • 웹지기 12-10 9457 0 0 댓글 0
  • 62 [ Server ][ Linux ] HTTP 1.1 분류 코드표(에러 코드표)
  • HTTP 에러 코드표 (from. 네이버 오픈백과)100 ::: Continue101 ::: Switching Protocols200 ::: OK, 에러없이 전송 성공202 ::: Accepted, 서버가 클라이언트의 명령을 받음.203 ::: Non-authoritavive Information, 서버가 클라이언트 요구중 일부만 정송204 ::: Non Content, 클라이언트 요구를 처리했으나 전송할 데이터가 없음.205 ::: Reset Content206 ::: Partial Conten...
  • 웹지기 09-30 9107 0 0 댓글 0
+1
  • 60 [ Server ][ Linux ] CentOS7 php_screw-1.5 설치 (php 소스 암호화)
  • * 설명php_screw 모듈을 설치하면 php 소스를 암호화 할 수 있다.php 가 설치되어 있는 상태에서 모듈만 추가한다.*소스 다운로드wgethttp://sourceforge.net/projects/php-screw/files/php-screw/1.5/php_screw-1.5.tar.gz*설치[root@ php_screw-1.5]# phpizeConfiguring for:PHP Api Version: 20041225Zend Module Api No: 20060613Zend Extension ...
  • 웹지기 09-27 9031 0 0 댓글 0
  • 열람중 [ Server ][ Linux ] centos7 apm(Apache+php+mysql) 설치( mod_ev…
  • 아파치님의 AAI-master를 설치하고 계정을 만들어 홈페이지를 접속할 때 새로고침을 빠르게 하다보면 403 오류를 뱉더라. 왜 그런지 검색을 해보니 mod_evasive 설치가 되면서 자동으로 설정이 된다. 아파치님께서 따로 설정하신건 없는 듯.................. 파일에 들어가서 확인을 해보니................ vim /etc/httpd/conf.d/mod_evasive.conf # mod_evasive configuration ...
  • 웹지기 04-30 9001 0 0 댓글 1
게시물 검색

회원로그인

접속자집계

오늘
5,809
어제
8,332
최대
33,828
전체
8,427,836

그누보드5
Copyright © funyphp.com. All rights reserved.