아파치 SSL인증서 암호(password) 자동입력 스크립트(script)
# Web&WAS/Apache2021. 6. 22. 16:09아파치 SSL인증서 암호(password) 자동입력 스크립트(script)

apache SSL인증서에 비밀 번호가 입력되어 있는 경우 apache를 실행 할 때 비밀 번호를 입력 해야지만 apache가 실행되게 된다. ssl.conf파일에 스크립트를 등록하여 apache 실행시에 자동으로 비밀 번호가 입력되도록 할 수 있다. 1. 패스워드를 기록한 스크립트 파일 생성 패스워드가 abc1234인 경우 아래와 같이 스크립트를 생성 [darksharavim]vi /usr/local/apache/conf/ssl/pass.sh #!/bin/sh echo "abc1234" 생성한 스크립트에 실행권한 설정 [darksharavim]ls -l /usr/local/apache/conf/ssl/pass.sh -rwx—— 1 root root 22 2021-06-22 12:24 /usr/local..

tomcat monitoring scouter install
# Web&WAS/Tomcat2021. 4. 20. 11:06tomcat monitoring scouter install

전제조건 : JDK설치 1. 다운로드 및 압축해제 github.com/scouter-project/scouter/releases/ 1 2 3 4 5 6 7 # mkdir -p /apps/ # cp /apps # wget https://github.com/scouter-project/scouter/releases/download/v2.12.0.1.SNAPSHOT/scouter-all-2.12.0.1.SNAPSHOT.tar.gz # tar -xvzf scouter-all-2.12.0.1.SNAPSHOT.tar.gz Colored by Color Scripter cs 2. scouter server 실행 1 2 3 4 5 6 7 8 9 10 11 # cd scouter/server # ./startup.sh ..

아파치 로그포맷 JSON 변경
# Web&WAS/Apache2021. 4. 1. 17:49아파치 로그포맷 JSON 변경

LogFormat "{ \"time\":\"%t\", \"clientip\":\"%a\",\"host\":\"%V\", \"request\":\"%U\", \"query\":\"%q\", \"method\":\"%m\", \"status\":\"%>s\", \"userAgent\":\"%{User-agent}i\", \"referer\":\"%{Referer}i\" }" json_format

[error]ajp_send_request::jk_ajp_common.c (1724)
# Web&WAS2021. 3. 5. 16:26[error]ajp_send_request::jk_ajp_common.c (1724)

mod_jk오류확인[error] ajp_send_request::jk_ajp_common.c (1724): (test) connecting to backend failed. Tomcat is probably not started or is listening on the wrong port (errno=111) server.xml 수정# 기존 # 변경 ipv4와 ipv6 둘다 사용하는 시스템이라면 톰캣 기본설정은 ipv6가 먼저 구동됨. 1. setenv.sh에 djava.net.preferipv4stack값을 true로 설정. 2. server.xml ajp설정도 address값을 127.0.0.1로 설정. 3. 톰캣 재기동 netstat로 확인하면 tcp로 확인됨. 아파치톰캣 연동되어잇을경우 worke..

아파치 GeoIP 설정 및 적용(centos5x)
# Web&WAS/Apache2020. 1. 30. 17:04아파치 GeoIP 설정 및 적용(centos5x)

설치환경 centos5.11 x86 apache-2.0.65 geoip api C라이브러리 설치 # unzip geoip-api-c-master.zip 압축해제후 bootstrap실행하면 아래와 같이 오류발생 autoreconf: Entering directory `.' autoreconf: configure.ac: not using Gettext autoreconf: running: aclocal --force -I m4 configure.ac:3: error: Autoconf version 2.63 or higher is required configure.ac:3: the top level autom4te: /usr/bin/m4 failed with exit status: 63 aclocal: aut..

image