Apache 2.2.x 버전은 2017년 12월부터 EOL되었기에 업그레이드가 필요하다.
2.4.39에는 mod_proxy, mod_http2 등에서 보안에 취약하다고 나왔기에 2.4.41로 업그레이드 하도록한다.

아파치 2.2 버전이 eol된다는 공식 문서

Apache HTTP Server 2.2 vulnerabilities This page lists all security vulnerabilities fixed in released versions of Apache HTTP Server 2.2. Each vulnerability is given a security impact rating by the Apache security team - please note that this rating may we

아파치 httpd업그레이드 공식 문서

1. 다운로드 및 설치

wget http://apache.tt.co.kr//httpd/httpd-2.4.41.tar.gz
tar -zxvf httpd-2.4.41.tar.gz
cd httpd-2.4.41/
./configure --prefix=/home1/irteam/mocha
make
make install

2. conf 설정

- 필요한 모듈들은 주석을 제거한다.

LoadModule rewrite_module modules/mod_rewrite.so 
LoadModule proxy_module modules/mod_proxy.so 
LoadModule proxy_http_module modules/mod_proxy_http.so

- 모든 요청을 거부 혹은 허용하는것을 기술하는 문법이 바꼈다.
- 그외에 default값이 변경된 것이 있을 수 있으니 upgrade문서를 참고하여 기존 conf설정을 옮겨오도록한다.

1) 모든 요청을 거부

# 2.2 설정
Order deny,allow
Deny from all

# 2.4 설정
Require all denied

2) 모든 요청을 허용

# 2.2 설정
Order allow,deny
Allow from all

# 2.4 설정
Require all granted  

3.  아파치 서버를 시작해준다 :)

sh apachectl start

+ Recent posts