본문 바로가기
728x90

백엔드/WAS16

아파치+톰캣 SSL 환경 구축 1. 기본 환경 OpenSSL : openssl-0.9.8j Apache : httpd-2.2.6 Tomcat : apache-tomcat-5.5.17 Tomcat connector : mod_jk-1.2.28-httpd-2.2.X.so 설치 위치 : 다운받은 모든 프로그램을 /usr/local/src/app 라는 폴더에 넣어서 관리한다. 또한 웹관련 어플리케이션을 /usr/local/server/ 밑에 설치한다. (유지보수의 편리성을 위해 한곳에 집중시킨다.) 위치 예) /usr/local/server/apache, /usr/local/server/tomcat 등등 2. OpenSSL 설치 하기 아파치2 버전부터는 mod_ssl (www.modssl.org)를 따로 다운받아서 설치할 필요가 없다. ww.. 2019. 9. 15.
톰캣에서 애플리케이션 두번 디플로이 되는 현상 중복(두번) 디플로이가 되어 스케줄러가 두번 구동되거나, 로그가 중복으로 찍히는 현상 또는 애플리케이션이 두번 구동되는 현상의 원인 1. web.xml 의 ContextContextLoaderListener 과 DispatcherServlet 에서 같은 설정 파일(*.xml) 을 로딩되도록 설정되어 있을때 2. Tomcat server.xml 파일 내용중 Host 의 appBase 와 Context 의 docbase 의 경로가 동일하거나, appBase 경로에 docBase 경로가 포함될때 참고 : https://tomcat.apache.org/tomcat-8.5-doc/config/host.html Automatic Application Deployment ...... When using automat.. 2019. 7. 29.
Apache + Tomcat 연동 맛보기 Apache 2.2 + Tomcat 5.5 연동 (정/동적 파일 분리 중심 연동) Apache 와 Tomcat 을 연동시 아파치에서는 정적인파일 (이미지, js, html 등등) 을 처리하게 하고 톰캣에서는 동적인 파일들을 처리하도록 하는것이 가장 중요한 포인트입니다. 대용량 트래픽을 유발하는 서비스의 경우는 이미지 파일 이나, js 파일 등을 아래와 같이 서브 도메인으로 만들어서 물리적으로 다른서버에 두게 하는경우가 일반적인 적용 가능한 경우입니다. 예) 이미지, js 파일 등등 : img.onjava.co.kr (일반적으로 이미지 서버 또는 파일서버) 동적인 파일 : www.onjava.co.kr (웹서버) www.onjava.co.kr 내의 html 에서 img 를 호출시 와 같은 형태로 하지만, .. 2019. 3. 12.
Apache cache 참고 자료 : http://www.askapache.com/htaccess/speed-up-sites-with-htaccess-caching.html 1. HTTP header를 이용하여 브라우저쪽에 데이터를 저장하는 캐쉬 -mod_expires, mod_header, mod_deflate2. 데이터를 아파치가 있는 서버단에 저장하는 캐쉬 : mod_cache # ------------------------------------------------------------------------------ # # .htaccess # Curtousy of the Magento Support Center # http://magentosupport.help/what-are-expires-headers-and-h.. 2015. 6. 21.
Squid Proxy Server Squid is a caching proxy for the Web supporting HTTP, HTTPS, FTP, and more. It reduces bandwidth and improves response times by caching and reusing frequently-requested web pages. Squid has extensive access controls and makes a great server accelerator. It runs on most available operating systems, including Windows and is licensed under the GNU GPL. http://www.squid-cache.org/ http://kvz.io/blog.. 2015. 6. 21.
728x90