본문 바로가기

728x90

apache

[리눅스] 아파치 웹서버 MPM(prefork, worker) 설정 방법 아파치 웹서버 MPM(prefork, worker) 설정 방법 아파치 웹 서버의 MPM (Multi-Processing Module)은 웹 서버가 처리할 수 있는 동시 연결 수와 처리 방식을 결정합니다. 아파치 웹 서버의 MPM 중에서는 prefork와 worker MPM이 있으며, 각각의 특징과 설정 방법을 알아보겠습니다. prefork MPM prefork MPM은 각 연결을 처리하는 프로세스를 별도로 생성하는 방식입니다. 이 방식은 안정적이고 예측 가능한 성능을 제공하지만, 동시 연결 수가 적을 경우에는 성능이 낮아집니다. 이러한 이유로 prefork MPM은 일반적으로 PHP와 같은 스크립트 언어를 사용하는 웹 사이트에서 사용됩니다. prefork MPM 설정 방법 1. 아파치 구성 파일(http.. 더보기
[리눅스] cronolog 설치 및 설정 cronolog 설치 및 설정 UK Mirror Service http://www.mirrorservice.org/sites/distfiles.macports.org/cronolog/ 다운로드 사이트 wget http://www.mirrorservice.org/sites/distfiles.macports.org/cronolog/cronolog-1.6.2.tar.gz wget http://www.mirrorservice.org/sites/distfiles.macports.org/cronolog-devel/cronolog-1.7.0-beta.tar.gz cronolog-1.7 설치 및 설정 cd /usr/local/src/ wget http://www.mirrorservice.org/sites/distfil.. 더보기
[리눅스] HSTS(HTTP Strict Transport Security) 설정 HSTS(HTTP Strict Transport Security) 설정 Redirect HTTP connections to HTTPS Apache 설정 ServerName example.com RewriteEngine on RewriteCond %{HTTPS} !on RewriteRule ^(.*)$ https://%{HTTP_HOST}$1 [R,L] NGINX 설정 server { listen 80; server_name example.com; return 301 https://$http_host$request_uri; } HSTS 설정 - HSTS를 사용하려면 "Strict-Transport-Security" HTTP 헤더를 설정합니다. max-age = 적용 시간. 초단위 includeSubdoma.. 더보기
[리눅스] CentOS 7.x YUM으로 APM 설치 YUM으로 APM 설치 EPEL 및 YUM Utilities 패키지 설치 yum install -y epel-release yum-utils $ yum install -y epel-release yum-utils 컴파일에 필요한 라이브러리 설치 yum install -y gcc gcc-c++ gdbm-devel ncurses-devel $ yum install -y gcc gcc-c++ gdbm-devel ncurses-devel APM 설치에 필요한 라이브러리 설치 yum install -y openssl-devel gd-devel libpng-devel libjpeg-devel freetype-devel fontconfig-devel libxml2-devel gmp-devel mhash-devel l.. 더보기
[리눅스] Apache2 확장 모듈 evasive(evasive20_module) 설치 Apache2 확장 모듈 evasive(evasive20_module) 설치 yum 설치 epel 설치 $ yum install -y epel-release httpd 설치 $ yum install -y httpd mod_evasive 모듈 설치 $ yum install -y mod_evasive 모듈 확인 $ apachectl -M | egrep evasive evasive20_module (shared) mod_evasive.conf 원본 파일 $ cat /etc/httpd/conf.d/mod_evasive.conf # mod_evasive configuration LoadModule evasive20_module modules/mod_evasive24.so # The hash table size d.. 더보기
[linux] How To Install webalizer on CentOS 8 How To Install webalizer on CentOS 8 webalizer - A flexible Web server log file analysis program installation environment $ cat /etc/redhat-release CentOS Linux release 8.2.2004 (Core) $ getconf LONG_BIT 64 install webalizer $ yum install -y webalizer webalizer package contents $ rpm -ql webalizer /etc/cron.daily/00webalizer /etc/httpd/conf.d/webalizer.conf /etc/sysconfig/webalizer /etc/webalize.. 더보기
[리눅스] Apache(HTTP) 및 PHP 버전 정보 노출 막기 Apache(HTTP) 및 PHP 버전 정보 노출 막기 HTTP 헤더에서 Apache 및 PHP 버전 확인 curl -I http://localhost $ curl -I localhost HTTP/1.1 302 Found Date: Fri, 28 Jan 2022 01:57:45 GMT Server: Apache/2.4.46 (Unix) OpenSSL/1.1.1k PHP/7.3.25 Location: http://www.sangchul.kr/404.html Content-Type: text/html; charset=iso-8859-1 wget --server-response --spider http://localhost -S,--server-response : HTTP 서버에서 보낸 헤더와 FTP 서버에서.. 더보기
[Kafka] 카프카 producer와 consumer 테스트 카프카 producer와 consumer 테스트 카프카 토픽 생성 topic list $ kafka-topics.sh --list --bootstrap-server localhost:9092 topic create - replication-factor : 복제본 개수(2) - partitions : 파티션 개수(3) $ kafka-topics.sh --create --bootstrap-server localhost:9092 --replication-factor 2 --partitions 3 --topic helloworld Created topic helloworld. topic list $ kafka-topics.sh --list --bootstrap-server localhost:9092 hellow.. 더보기

728x90