while read oldrev newrev ref do # only checking out the master (or whatever branch you would like to deploy) if [ "$ref" = "refs/heads/$BRANCH" ]; then echo "Ref $ref received. Deploying ${BRANCH} branch to production..." git --work-tree=$TARGET --git-dir=$GIT_DIR checkout -f $BRANCH else echo "Ref $ref received. Doing nothing: only the ${BRANCH} branch may be deployed on this server." fi done
The Apache 2.4 or higher versions have the remoteip_module file (mod_remoteip.so) in the installation package. You can use this file to get the real client IP address.
Linux system
You can get the real client IP address by installing the third-party modulemod_rpaf.
아파치 모듈 적용 Apache 2.2 이하버전은 mod_rpaf Apache 2.4 버전은mod_remoteip
ARG1, ARG2, arg++는 "단계별"작동한다. 첫 번째 % 기호는 ARG1로 두 번째 % 기호는 ARG2로
format, arg1은 필수인자이고 arg2,arg++ 선택적인자이다.
%% - 백분율 기호를 반환합니다. % b - 이진수 % c - ASCII 값에 따른 문자 % d - 부호있는 10 진수 (음수, 0 또는 양수) % e - 소문자 (예 : 1.2e + 2)를 사용하는 과학 표기법 % E - 대문자 (예 : 1.2E + 2)를 사용하는 과학 표기법 % u - 부호없는 10 진수 (0보다 크거나 같음) % f - 부동 소수점 수 (로컬 설정 인식) % F - 부동 소수점 수 (로컬 설정 인식 없음) % g - % e와 % f 중 짧은 것 % G - % E 및 % f 중 더 짧음 % o - 8 진수 % s - 문자열 % x - 16 진수 (소문자) % X - 16 진수 (대문자)