본문 바로가기

반응형

httpd

CentOS 7에 Apache2의 확장 모듈인 Evasive를 설치하는 방법 CentOS 7에 Apache2의 확장 모듈인 Evasive를 설치하는 방법 EPEL 저장소 설치 yum install -y epel-release 필수 패키지 설치 yum install -y httpd httpd-devel Evasive 모듈 설치 yum install -y mod_evasive Evasive 활성화 및 설정 vim /etc/httpd/conf.d/mod_evasive.conf LoadModule evasive20_module /usr/lib64/httpd/modules/mod_evasive20.so apachectl -M | egrep evasive $ apachectl -M | egrep evasive evasive20_module (shared) Evasive 모듈에 대한 설정 m.. 더보기
Let's Encrypt에서 DNS 모드로 SSL 인증서를 발급받는 방법 Let's Encrypt에서 DNS 모드로 SSL 인증서를 발급받는 방법 DNS 모드는 도메인 소유권 검증을 DNS 레코드를 통해 처리하는 방식입니다. EPEL 패키지 설치 yum install -y epel-release 1. Certbot 설치 Certbot을 설치합니다. CentOS 7의 경우 다음과 같이 수행할 수 있습니다. sudo yum install certbot python2-certbot-nginx 설치된 패키지는 시스템에 따라 다를 수 있습니다. 2. DNS API 키 준비 DNS 모드로 SSL 인증서를 발급받기 위해서는 해당 DNS 제공업체의 API 키가 필요합니다. Certbot이 DNS 레코드를 자동으로 추가하고 수정하도록 하기 위함입니다. DNS 제공업체별로 다양한 설정이 필요하.. 더보기
Apache 2.4 Invalid command 'LanguagePriority' Apache 2.4 Invalid command 'LanguagePriority' 에러 $ /usr/local/apache2/bin/apachectl -t AH00526: Syntax error on line 78 of /usr/local/apache2/conf/extra/httpd-languages.conf: Invalid command 'LanguagePriority', perhaps misspelled or defined by a module not included in the server configuration Invalid command 'LanguagePriority' 오류는 Apache 2.4에서 LanguagePriority 디렉티브를 사용할 때 발생할 수 있습니다. 이 오류는 Apach.. 더보기
[url] HTTP Status Codes HTTP Status Codes(HTTP 1.1 : RFC 2616) 상태코드는 서버가 요구 메시지를 수신하여 처리한 결과를 알려주는 세 자리의 정수로 된 처리 결과 번호입니다.첫 번째 자리 숫자는 응답의 종류에 대한 분류 기호이며, 나머지 두 자리 숫자는 일련번호입니다. 현재 첫 번째 자리 숫자에 대해 다섯 가지로 분류하여 쓰고 있습니다. •Informatinal 1xx •Success 2xx •Redirection 3xx •Client Error 4xx •Server Error 5xx Informational 1xx 참고 정보로 클라이언트의 요청이 접수되었고 현재 처리하고 있다는 의미입니다.클라이언트에서 첨부문서(attatched document)를 보내기 전에 요청을 보낼때 Expect헤더에 설정해.. 더보기
HTTP 상태 코드 HTTP 상태 코드 1xx (조건부 응답) 클라이언트의 요청이 받아들여졌으며, 추가 동작이 필요한 상태 코드입니다. 예를 들어, 100 Continue는 클라이언트에게 요청의 일부를 계속 전송할 수 있음을 나타냅니다. 2xx (성공) 클라이언트의 요청이 성공적으로 처리되었음을 나타냅니다. 가장 일반적인 상태 코드는 200 OK로, 요청이 성공적으로 처리되었음을 의미합니다. 3xx (리다이렉션 완료) 클라이언트의 요청이 완료되기 위해 추가 조치가 필요한 경우 사용되는 상태 코드입니다. 일반적으로 리다이렉션을 통해 다른 위치로 이동하거나, 캐시를 사용하도록 클라이언트에게 알려줍니다. 예를 들어, 301 Moved Permanently는 요청한 리소스가 새로운 URL로 영구적으로 이동되었음을 알려줍니다. 4x.. 더보기
[리눅스] phpmyadmin 설치 패키지 정보 mysql-5.1.50 httpd-2.2.16 php-5.2.14 ZendOptimizer-3.3.3 phpMyAdmin-3.3.7 라이브러리 설치 # yum -y install gd gd-devel libpng libpng-devel libjpeg libjpeg-devel freetype freetype-devel libxml2 libxml2-devel openssl openssl-devel mhash mhash-devel MySQL # useradd -m -c "MySQL Server" -d /usr/local/mysql -s /bin/false -u 27 mysql # ./configure --prefix=/usr/local/mysql --localstatedir=/usr/local/m.. 더보기
[Apache] apache(httpd-2.2.12) 설치 apache(httpd-2.2.12) 설치 ver : httpd-2.2.12 # useradd -c "Apache" -u 48 -s /sbin/nologin -m -d /home/www apache # ./configure --prefix=/usr/local/apache2 --enable-so --enable-shared=max --enable-rewrite --enable-ssl --enable-proxy # make # make install # cp -p /usr/local/apache2/bin/apachectl /etc/init.d/httpd # vi /etc/init.d/httpd ----------------------------------------------------------------.. 더보기
아파치 서버의 로그 저장 스크립트 아파치 서버의 로그 저장 스크립트 이 스크립트는 Apache 웹 서버의 액세스 로그 및 에러 로그를 매일 로테이트하여 지난 3일 간의 로그를 보관하고, 오래된 로그를 삭제하는 기능을 수행합니다. vim apache_log_rotate.sh #!/bin/bash # Script Name: apache_log_rotate.sh # Description: Rotate Apache web server logs and remove old logs C_DATE=$(date +%Y-%m-%d) LAST_DATE=$(date +%Y-%m-%d --date '3 days ago') SITES=$(grep ServerName /usr/local/apache2/conf/extra/httpd-vhosts.conf | grep.. 더보기

728x90
반응형