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

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

linux

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

페이지 정보

작성자 웹지기 댓글 1건 조회 8,602회 작성일 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 ] centos7 Gitlab-CI를 이용한 자동 배포 환경 만들기
  • Gitlab-CI 기능을 활용 - branch commit시 자동배포 Gitlab CI-CD 기능을 사용하려면 gitlab-runner를 설치해야 한다. Gitlab CE 버젼을 설치하면 자동으로 gitlab-runner가 설치고 계정도 생성되므로 설정만 해주면 된다. 설정은 본 글의 하단부분을 따라하면 된다. ※ Gitlab CI 설치 - Gitlab Repository 추가 # curl -L https://packages.gitlab.com/install/reposi...
  • 웹지기 08-08 11567 0 0 댓글 0
  • 72 [ Server ][ Linux ] git / gitlab init ~ pull 작업 흐름 (진행 방향)
  • 1) 설정이 어떻게 되어있는지 확인을 위해 설정 내용을 확인한다. git 을 진행하기 원하는 폴더를 설정한다 해당폴더로 이동 후 git init 명령으로 디렉토리에 git 저장소 설정을 해준다. /home/aaa/public_html 이라는 폴더가 존재할 때 public_html 아래의 내용을 git에 올리고 싶다면 public_html 폴더로 이동 후 다음의 명령들을 실행한다. # git init # git config --list 사용자 설정을 해준다. ...
  • 웹지기 08-07 5659 0 0 댓글 0
  • 71 [ Server ][ Linux ] centos7 원격데스크탑 / XRDP
  • EPEL 설치 # yum install epel-release -y XRDP 와 VNC 설치 # yum install xrdp tigervnc-server -y 설치가 완료 되었다면 서비스 등록 # systemctl enable xrdp 방화벽을 확인하고 원격포트 방화벽이 설정 되어 있지 않으면 설정해준다. # firewall-cmd --permanent --zone=public --add-port=3389/tcp 재부팅하고 접속해보자 # reboot
  • 웹지기 08-05 4561 0 0 댓글 0
  • 70 [ Server ][ Linux ] centos7 gui 설치 / 접속 / 언어설정
  • Centos7 의 기본은 터미널이다. 그래서 GUI를 보고 싶어서 설치해봐야겠다. Centos7 minimal 버젼 설치이후 설치해 보았다. # echo $LANG 현재 설정언어를 볼 수 있다 영문으로 변경은 # LANG=en_US.UTF-8 GUI 설치방법은 중간에 질문이 한번 나온다 y를 눌러주면 된다 패키지가 많아서 조금 걸리는 것 같네요. # yum groupinstall "GNOME Desktop" &#...
  • 웹지기 08-05 5831 0 0 댓글 0
  • 69 [ Server ][ Linux ] CentOS7 .gitignore 사용법 - git 전송 무시 목록 설정
  • .gitignore 파일이란? - ".gitignore" 파일은 Git에 소스를 올릴 때 특정 파일이름 패턴이 업로드 되지 않도록 설정하는 파일 # # =&gt; 주석 # logs =&gt; logs라는 파일 또는 폴더 # *.log =&gt; 확장자가 log라는 모든 파일 # error.log* =&gt; error.log 이부분까지 일치하는 파일 # tmp/ =&gt; tmp의 하위 폴더...
  • 웹지기 08-02 5288 0 0 댓글 0
  • 68 [ Server ][ Linux ] CentOS7 gitlab SSH key 생성
  • 터미널을 열어서 ssh key를 생성 # ssh-keygen # Generating public/private rsa key pair. # Enter file in which to save the key (/Users/funyphp/.ssh/id_rsa): 이메일주소 # Enter passphrase (empty for no passphrase): enter # Enter same passphrase again: enter gitlab에서는 비트수...
  • 웹지기 08-01 5119 1 0 댓글 2
  • 67 [ Server ][ Linux ] centos7 git / gitlab init 부터 pull 까지
  • 서버에서 git을 설치한 이후 사용해야 한다. git 버젼을 확인한다. # git --version git 사용자 이름을 추가하고 이메일을 설정한다. # git config --global user.name "your_name" # git config --global user.email "your_email" 원격지 저장 - 삭제는 add 대신 remove # git remote add ori...
  • 웹지기 08-01 5058 0 0 댓글 0
  • 65 [ Server ][ Linux ] CentOS7 CWP WEB PANEL – INSTALLATION
  • 시스템 요구사항 32비트 서버 = 512MB RAM 64비트 서버 = 512MB RAM HDD - 10GB 운영체제 CentOS 6.x, 7.x ReadHat 6.x, 7.x CloudLinux 6.x, 7.x CentOS 6 과 CentOS 7 의 설치 방법이 다르니 주의 하세요 @CentOS 7 설치 // 호스트명 설정( example.com을 자신의 도메인으로 설정 하세요 ) # cd / # echo 'cwp.example.com' &gt; /e...
  • 웹지기 07-15 5302 0 0 댓글 0
  • 64 [ Server ][ Linux ] httpd 2.4.x update to 2.4.39 on centos7 …
  • @mysql mariadb 업데이트 후 apache를 업데이트 하자 httpd 2.4.x 와 2.4.39의 버젼으로 업데이트 되면서 사용하지 않는 파일이 많아 오류가 많이 발생한다. @버젼 확인 # yum info httpd @epel 활성화 # yum install -y epel-release # cd /etc/yum.repos.d # wget https://repo.codeit.guru/codeit.el`rpm -q --qf "%{VERSION}" $(rp...
  • 웹지기 07-11 5770 0 0 댓글 0
  • 63 [ Server ][ Linux ] kloxo-mr7 한글 패치
  • /usr/local/lxlabs/kloxo/httpdocs/lang 해당 경로에서 en-us 폴더를 다운받아서 ko-kr로 수정 language를 Korea KR 로 수정 각 php파일을 열어 번역을 해주고 파일 업로드 해주면 된다.
  • 웹지기 07-11 5190 0 0 댓글 0
  • 62 [ Server ][ Linux ] centos7 kloxo-mr7 mariadb upgrade
  • mariadb 10.0.038 =&gt; mariadb 10.3.16 mysql 정지 # systemctl stop mysql mysql 삭제 # yum remove mysql mysql-server redo setup #curl -sS https://downloads.mariadb.com/MariaDB/mariadb_repo_setup | sudo bash # cd /etc/yum.repos.d # cp m...
  • 웹지기 07-11 6009 0 0 댓글 0
  • 61 [ Server ][ Linux ] centos7 kloxo-mr7 웹으로 로그인 오류
  • 기본 사용자 이름은 admin 이고 비밀번호는 admin인데 로그인이 되지 않거나 웹페이지 열리지 않는 경우 방화벽을 먼저 설정해 봅니다 @웹브라우저로의 접속이 되지 않을 경우 방화벽 설정을 해준다 # firewall-cmd --permanent --zone=public --add-port={21,80,443,3306,7777,7778}/tcp # firewall-cmd --reload # firewall-cmd --list-all @사이트 로그인이 ...
  • 웹지기 07-10 5029 0 0 댓글 0
  • 60 [ Server ][ Linux ] centos7 kloxo-mr7 mysql 비빌번호 오류 수정 / 변경
  • 오류 비밀번호 수정이 되지않아서 링크를 따라 선행 후 변경을 시도해야 한다. # service mysql stop # /usr/bin/mysql_safe --skip-grant-tables &amp; # mysql -u root mysql #update user set password=password('123456') where user='root'; # quit # service mysql restart
  • 웹지기 07-10 4976 0 0 댓글 0
  • 59 [ Server ][ Linux ] httpd 2.4.x update to 2.4.39 on centos7
  • httpd 2.4.x update to 2.4.39 on centos7 # cd /etc/yum.repos.d # wget https://repo.codeit.guru/codeit.el`rpm -q --qf "%{VERSION}" $(rpm -q --whatprovides redhat-release)`.repo # yum install httpd -y 오류 확인을 위해 # httpd -t httpd: Syntax error on line 13 of /et...
  • 웹지기 07-10 10871 0 0 댓글 0
게시물 검색

회원로그인

접속자집계

오늘
423
어제
6,915
최대
33,828
전체
8,105,117

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