Apache2 [ Apache ] Proxy 환경에서 client ip 확인 (X-Forwarded-For) Apache 를 사용하는 Proxy 환경에서 최종 client ip 를 확인 하기 위해 http header규격인 X-Forwarded-For 를 사용하여 apache 의 access log 로 출력 해 보았습니다. 제가 테스트를 해본 환경은 아래와 같습니다. 위의 환경에서 Apache Service Server 에 X-Forwarded-For 라는 header 로 client pc 의 ip 를 출력 하는 예제 입니다. 호출은 client pc 브라우저에서 http://192.168.101.1/ 로 하였습니다. 1. Apache Proxy Server (192.168.101.1) 설정 - httpd.conf ($APACHE_HOME/conf) LoadModule proxy_module modules/mo.. 2020. 4. 17. 아파치 설치시 ssl 설치 (https 접속) ssl 설치 http://www.openssl.org //32BIT 일때 ./config --prefix=/usr/local/ssl make make install //./config --prefix=/usr/local/ssl -fPIC 이렇게 실행 해야 할 때도 있음 //우분투에선 -fPIC 옵션 안먹는데..(32bit ㅜ.ㅜ) apache 설치 http://httpd.apache.org/ ./configure --prefix=/usr/local/apache2.4 \ --enable-mods-shared=most \ --enable-module=so \ --enable-so \ --enable-rewrite \ --enable-mods-shared=ssl \ --with-ssl=/usr/local/ss.. 2012. 6. 4. 이전 1 다음