특정 호스트로 접속하면 redirect하도록 Apache 웹 서버 .htaccess의 rewrite engine을 설정하는 방법이다.yourmain.com과 home.yourdomain.com으로 접근하면 www.yourdomain.com으로 redirect한다. RewriteEngine On RewriteCond %{HTTP_HOST} ^yourdomain.com$ [OR]RewriteCond %{HTTP_HOST} ^home.yourdomain.com$RewriteRule .* http://www.yourdomain.com? [R=302,L]
allow1.yourdomain.com과 allow2.yourdomain.com으로만 아파치 웹서버로 접근가능하도록 .htaccess의 rewrite engine을 설정하는 방법이다.allow3.yourdomain.com으로 접근하면 forbidden(403) 오류가 발생한다. RewriteEngine On RewriteCond %{HTTP_HOST} !^allow1.yourdomain.com$RewriteCond %{HTTP_HOST} !^allow2.yourdomain.com$RewriteRule .* - [F,L]
Customer actionCSR 생성openssl 이용키 생성openssl genrsa -des3 -out customer.pem 2048비밀번호 입력CSR 생성openssl req -new -key customer.pem -out customer.csr개인정보 입력DER로 변환openssl req -inform pem -outform der -in customer.csr -out customer.der customer.derMacOS 키체인 이용메뉴: 키체인 접근 -> 인증서 지원 -> 인증 기관에서 인증서 요청CSR 파일 (.certSigningRequest) 생성.csr로 확장자 변경DER로 변환 customer.der생성한 CSR 파일(customer.der)을 MDM verdor에게 전송 (혼..
두 개(내부망/외부망)의 네트워크에 연결되어 있을 때, 목적지 IP별로 다른 이더넷 인터페이스 사용하기 # 설정: Dest. IP가 10.XXX.XXX.XX이면 en0 인터페이스 사용sudo route -nv add -net 10 -interface en0 # 해제sudo route delete -net 10 -interface en0 Linux에서도 되는지는 확인안해봤습니다.
Tomcat 8 기준 server.xml... ...
NOW_DATE=`date '+%Y%m%d'`mkdir -p /dir/$NOW_DATE # 참고: 현재 년월일시분초date '+%Y%m%d%H%M%S'
http://stackoverflow.com/questions/5013917/can-i-serve-jsps-from-inside-a-jar-in-lib-or-is-there-a-workaround Servlet 3.0 which Tomcat 7 supports includes the ability to package jsps into a jar.You need to:place your jsps in META-INF/resources directory of your jaroptionally include a web-fragment.xml in the META-INF directory of your jarplace the jar in WEB-INF/lib directory of your warYou shou..
security import (PEM or p12 file) -k ~/Library/Keychains/login.keychain
http://stackoverflow.com/a/16847082I remembered vaguely being able to do this with openssl on .pem files, so that's the direction I headed.In Keychain Access, export the private key as eg private.p12. Apply a password, or not.Convert it to .pem: openssl pkcs12 -in private.p12 -out private.pem. Enter password from previous step. You're forced to apply a password to the .pem.Extract the public por..
keytool -importkeystore -srckeystore (my.jks) -destkeystore (my.p12) -srcstoretype JKS -deststoretype PKCS12 -srcstorepass (password) -deststorepass (password) -srcalias (my) -destalias (my)