{"id":685,"date":"2015-04-13T21:36:25","date_gmt":"2015-04-14T06:36:25","guid":{"rendered":"http:\/\/blog.box.kr\/?p=685"},"modified":"2015-04-13T21:36:25","modified_gmt":"2015-04-14T06:36:25","slug":"%ed%8e%8c-apache-htaccess-%eb%8f%84%eb%a9%94%ec%9d%b8-%ec%bb%a8%ed%8a%b8%eb%a1%a4%ed%95%98%ea%b8%b0-www-https","status":"publish","type":"post","link":"https:\/\/blog.box.kr\/?p=685","title":{"rendered":"[\ud38c] Apache .htaccess \ub3c4\uba54\uc778 \ucee8\ud2b8\ub864\ud558\uae30 (www , https)"},"content":{"rendered":"<p><a href=\"http:\/\/blog.lael.be\/post\/1130\">http:\/\/blog.lael.be\/post\/1130<\/a><\/p>\n<p># \uc6d0\ud558\ub294 \ub3d9\uc791\uc758 \uc8fc\uc11d\uc744 \uc81c\uac70\ud558\uba74 \ub3d9\uc791\ud55c\ub2e4.<\/p>\n<p>.htaccess \ud30c\uc77c\uc5d0 \uc544\ub798\uc758 \ub0b4\uc6a9\uc744 \ub123\uc73c\uba74 \ub41c\ub2e4.<\/p>\n<p>\uc21c\uc11c\ub97c \ubaa8\ub974\uaca0\ub2e4\uba74 \ud574\ub2f9\ud30c\uc77c\uc758 \ub9e8 \ubc11\uc5d0 \ub123\uc73c\uba74 \ub41c\ub2e4.<\/p>\n<p>&nbsp;<\/p>\n<div>\n<div id=\"highlighter_599489\" class=\"syntaxhighlighter  bash\">\n<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\n<tbody>\n<tr>\n<td class=\"gutter\">\n<div class=\"line number1 index0 alt2\">\n<\/div>\n<\/td>\n<td class=\"code\">\n<div class=\"container\">\n<div class=\"line number1 index0 alt2\"><code class=\"bash plain\">&lt;IfModule mod_rewrite.c&gt;<\/code>\n<\/div>\n<div class=\"line number2 index1 alt1\"><code class=\"bash plain\">RewriteEngine on<\/code>\n<\/div>\n<div class=\"line number3 index2 alt2\">\n<\/div>\n<div class=\"line number4 index3 alt1\"><code class=\"bash plain\">RewriteRule ^ - [E=protossl]<\/code>\n<\/div>\n<div class=\"line number5 index4 alt2\"><code class=\"bash plain\">RewriteCond %{HTTPS} on<\/code>\n<\/div>\n<div class=\"line number6 index5 alt1\"><code class=\"bash plain\">RewriteRule ^ - [E=protossl:s]<\/code>\n<\/div>\n<div class=\"line number7 index6 alt2\">\n<\/div>\n<div class=\"line number8 index7 alt1\"><code class=\"bash comments\"># https \uac15\uc81c\uc774\ub3d9.<\/code>\n<\/div>\n<div class=\"line number9 index8 alt2\"><code class=\"bash comments\"># RewriteCond %{HTTPS} !=on<\/code>\n<\/div>\n<div class=\"line number10 index9 alt1\"><code class=\"bash comments\"># RewriteRule ^ https:\/\/%{HTTP_HOST}%{REQUEST_URI} [L,R=301]<\/code>\n<\/div>\n<div class=\"line number11 index10 alt2\">\n<\/div>\n<div class=\"line number12 index11 alt1\"><code class=\"bash comments\"># www \uac15\uc81c\ub85c \ubd99\uc774\uae30.<\/code>\n<\/div>\n<div class=\"line number13 index12 alt2\"><code class=\"bash comments\"># RewriteCond %{HTTP_HOST} .<\/code>\n<\/div>\n<div class=\"line number14 index13 alt1\"><code class=\"bash comments\"># RewriteCond %{HTTP_HOST} !^www. [NC]<\/code>\n<\/div>\n<div class=\"line number15 index14 alt2\"><code class=\"bash comments\"># RewriteRule ^ http%{ENV:protossl}:\/\/www.%{HTTP_HOST}%{REQUEST_URI} [L,R=301]<\/code>\n<\/div>\n<div class=\"line number16 index15 alt1\">\n<\/div>\n<div class=\"line number17 index16 alt2\"><code class=\"bash comments\"># www \uac00 \ubd99\uc5b4\uc788\uc73c\uba74 \ub5bc\uae30.<\/code>\n<\/div>\n<div class=\"line number18 index17 alt1\"><code class=\"bash comments\"># RewriteCond %{HTTP_HOST} ^www.(.+)$ [NC]<\/code>\n<\/div>\n<div class=\"line number19 index18 alt2\"><code class=\"bash comments\"># RewriteRule ^ http%{ENV:protossl}:\/\/%1%{REQUEST_URI} [L,R=301]<\/code>\n<\/div>\n<div class=\"line number20 index19 alt1\">\n<\/div>\n<div class=\"line number21 index20 alt2\"><code class=\"bash plain\">&lt;<\/code><code class=\"bash plain\">\/IfModule<\/code><code class=\"bash plain\">&gt;<\/code>\n<\/div>\n<\/div>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>http:\/\/blog.lael.be\/post\/1130 # \uc6d0\ud558\ub294 \ub3d9\uc791\uc758 \uc8fc\uc11d\uc744 \uc81c\uac70\ud558\uba74 \ub3d9\uc791\ud55c\ub2e4. .htaccess \ud30c\uc77c\uc5d0 \uc544\ub798\uc758 \ub0b4\uc6a9\uc744 \ub123\uc73c\uba74 \ub41c\ub2e4. \uc21c\uc11c\ub97c \ubaa8\ub974\uaca0\ub2e4\uba74 \ud574\ub2f9\ud30c\uc77c\uc758 \ub9e8 \ubc11\uc5d0 \ub123\uc73c\uba74 \ub41c\ub2e4. &nbsp; &lt;IfModule mod_rewrite.c&gt; RewriteEngine on RewriteRule ^ &#8211; [E=protossl] RewriteCond %{HTTPS} on RewriteRule ^ &#8211; [E=protossl:s] # https \uac15\uc81c\uc774\ub3d9. # RewriteCond %{HTTPS} !=on # RewriteRule ^ https:\/\/%{HTTP_HOST}%{REQUEST_URI} [L,R=301] # www \uac15\uc81c\ub85c \ubd99\uc774\uae30. # RewriteCond %{HTTP_HOST} . # RewriteCond %{HTTP_HOST} !^www. [NC] # RewriteRule ^ http%{ENV:protossl}:\/\/www.%{HTTP_HOST}%{REQUEST_URI} [L,R=301] # www \uac00 \ubd99\uc5b4\uc788\uc73c\uba74 \ub5bc\uae30. # RewriteCond %{HTTP_HOST} ^www.(.+)$ [NC] # RewriteRule ^ http%{ENV:protossl}:\/\/%1%{REQUEST_URI} [L,R=301] &lt;\/IfModule&gt; &nbsp;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_mi_skip_tracking":false,"ngg_post_thumbnail":0,"spay_email":"","jetpack_publicize_message":"","jetpack_is_tweetstorm":false,"jetpack_publicize_feature_enabled":true},"categories":[5],"tags":[],"aioseo_notices":[],"jetpack_featured_media_url":"","jetpack_publicize_connections":[],"jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p5q9Zn-b3","jetpack-related-posts":[{"id":647,"url":"https:\/\/blog.box.kr\/?p=647","url_meta":{"origin":685,"position":0},"title":"MYSQL\uc5d0\uc11c AUTO INCREMENT column\uc758 \uc785\ub825 \uac12 \uac00\uc838\uc624\uae30..","date":"2015-04-05","format":false,"excerpt":"INSERT \uc2e4\ud589 \ud6c4\uc5d0\u00a0SELECT LAST_INSERT_ID() ; \ud558\uba74 \ub41c\ub2e4. \u00a0 \ud574\ub2f9 Session\uc5d0\uc11c\ub9cc \uc694\ud6a8 \ud558\uae30 \ub54c\ubb38\uc5d0 \ub3d9\uc77c \ud14c\uc774\ube14\uc5d0 \uc5ec\ub7ec \uc785\ub825\uc774 \uc788\ub354\ub77c\ub3c4 session\uc774 \uc720\uc9c0\ub418\ub294 \ud55c\uc740 \uc720\uc9c0 \ub41c\ub2e4. \uadf8\ub9ac\uace0 \ub370\uc774\ud130 \uc0ad\uc81c\ud6c4 \ub610\ub294 \ud14c\uc774\ube14 \uc0dd\uc131 \ud6c4 \ud2b9\uc815 \ubc88\ud638 \uc774\ud6c4\ub85c \u00a0\uc77c\ub828 \ubc88\ud638\uac00 \uc0dd\uc131\ub418\uac8c \ud560\ub824\uba74 ALTER TABLE\u00a0table_name\u00a0AUTO_INCREMENT = 100; \u00a0 \uc774\ub807\uac8c \ud558\uba74 \ub41c\ub2e4. \u00a0","rel":"","context":"In &quot;\uae30\uc220\uc790\ub8cc&quot;","img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":408,"url":"https:\/\/blog.box.kr\/?p=408","url_meta":{"origin":685,"position":1},"title":"jboss \ucee8\ud14c\uc774\ub108 \ucd94\uac00 \ud558\uae30..","date":"2014-11-04","format":false,"excerpt":"\ucee8\ud14c\uc774\ub108 \ucd94\uac00 \ud558\uace0 ajp\uc5f0\uacb0\uc5d0\uc11c \uc0ac\uc6a9\ud558\ub294 port\ub97c \ubcc0\uacbd \ud558\uae30 \uc704\ud574\uc11c\ub294 \/usr\/local\/jboss-6.1.0.Final\/server\/\ucee8\ud14c\uc774\ub108\uba85\/conf\/bindingservice.beans\/META-INF\/bindings-jboss-beans.xml \uc5d0\uc11c Ports03Bindings \uc5d0 \ud574\ub2f9 \ucee8\ud14c\uc774\ub108\uc758 port offset\uc744 \uc218\uc815 \ud558\uba74 \ub41c\ub2e4. \uc5ec\uae30\uc5d0 100 \uc774\uba74 8109 200\uc774\uba74 8209 300\uc774\uba74 8309 400\uc774\uba74 8409 500\uc774\uba74 8509 \uc774\ub7f0\uc2dd\uc73c\ub85c \ucc98\ub9ac \ub41c\ub2e4.. \u00a0 \uc989.. \ucee8\ud14c\uc774\ub108 \uc218 *100 \ud558\uba74 \ub41c\ub2e4.. \u00a0 \u00a0","rel":"","context":"In &quot;jboss&amp;tomcat&quot;","img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":395,"url":"https:\/\/blog.box.kr\/?p=395","url_meta":{"origin":685,"position":2},"title":"[\ud38c][\uc601\uc0c1\ucc98\ub9ac] Visual Studio 2010 + OpenCV 2.4.8 \uc124\uce58","date":"2014-09-15","format":false,"excerpt":"http:\/\/dsnight.tistory.com\/1 \u00a0 http:\/\/docs.opencv.org\/2.4.8\/doc\/user_guide\/ug_mat.html#input-output Visual Studio 2010\uc5d0 OpenCV 2.4.8\ubc84\uc804\uc744 \uc124\uce58\ud574 \ubcf4\uaca0\ub2e4. Visual 6.0 + OpenCV 1.0 \ubc84\uc804\ubd80\ud130 Visual Studio2012\uae4c\uc9c0 OpenCV\ub97c \uc124\uce58\ud574 \ubcf4\uc558\uc9c0\ub9cc OpenCV\ub97c \uc124\uce58\ud558\ub294 \uc77c\uc774\ub780 \ucc38 \uadc0\ucc2e\ub2e4.. \uc774\ubc88\uc5d4 Visual Studio 2010\uc5d0 \uc124\uce58\ub97c \ud560\ud150\ub370, Visual Studio 2012\uc5d0 \uc124\uce58\ud558\ub294 \ubc29\ubc95\uc774\ub791 \ubcc4 \ub2e4\ub978 \ucc28\uc774\ub294 \uc5c6\uc744\ub4ef \ud558\ub2e4. 1. OpenCV \ub2e4\uc6b4\ubc1b\uae30 \ub2e4\uc6b4\ubc1b\uc73c\ub7ec \uac00\uae30 \uc124\uce58\ud558\uae30 \uc704\ud574 OpenCV\u2026","rel":"","context":"In &quot;\ucc38\uace0\ub97c \uc704\ud55c \uc800\uc7a5\ubb3c&quot;","img":{"alt_text":"","src":"http:\/\/cfile28.uf.tistory.com\/image\/2523004252C94E100BB207","width":350,"height":200},"classes":[]},{"id":375,"url":"https:\/\/blog.box.kr\/?p=375","url_meta":{"origin":685,"position":3},"title":"spring mybatis @Repository","date":"2014-09-15","format":false,"excerpt":"\u00a0 http:\/\/blog.naver.com\/PostView.nhn?blogId=vikong&logNo=60180414100 application-context.xml \u00a0 1) @Respository \ub85c DAO scanning \ubc0f bean \uc124\uc815 \ubb38\uc7a5 <context:component-scan base-package=\"trust.repository\" use-default-filters=\"false\"> <context:include-filter type=\"annotation\" expression=\"org.springframework.stereotype.Repository\" \/> <\/context:component-scan> \u00a0 2) @Transactional \uc744 \uc704\ud55c \uc124\uc815 \ubb38\uc7a5 <!-- enable the configuration of transactional behavior based on annotations --> <tx:annotation-driven transaction-manager=\"txManager\" proxy-target-class=\"true\"\/> \u00a0 <!-- a PlatformTransactionManager is still required -->\u2026","rel":"","context":"In &quot;\ucc38\uace0\ub97c \uc704\ud55c \uc800\uc7a5\ubb3c&quot;","img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":489,"url":"https:\/\/blog.box.kr\/?p=489","url_meta":{"origin":685,"position":4},"title":"boost \uc0ac\uc6a9\ud558\uae30..","date":"2014-12-22","format":false,"excerpt":"1. \uc124\uce58 \ud558\uae30.. BOOST LIBRARY \ub97c \ub2e4\uc6b4\ubc1b\ub294\ub2e4. \ud604\uc7ac ( 2011. 7. 8 ) \ucd5c\uc2e0 \ub9b4\ub9ac\uc988\ub294 1_46_1 \uc774\ub2e4. zip \ud30c\uc77c\uc744 \ub2e4\uc6b4\ubc1b\uc544\uc11c \uc6d0\ud558\ub294 \uacf3\uc5d0\ub2e4\uac00 \uc555\ucd95\uc744 \ud47c\ub2e4. \ud3f4\ub354 \ub0b4\uc5d0 \ub0b4 \uad6c\uc131\uc774 \ub2e4\uc74c\uacfc \uac19\uc744 \uac83\uc774\ub2e4. \uc774\uc911\uc5d0\uc11c, \uc704\uc5d0\uc11c \uc120\ud0dd\ub41c bootstrap \uc744 \uc774\uc6a9\ud574\uc11c bjam \uc744 \ub9cc\ub4e4\uac83\uc774\ub2e4. bjam \uc740 \uc77c\uc885\uc758 \ud30c\uc11c\ub2e4. \uc0ac\uc6a9\uc790\uac00 \uc785\ub825\ud55c \uc635\uc158\uc744 \ud30c\uc2f1\ud574\uc11c \uc785\ub825\ub41c \uc635\uc158\uc5d0\u2026","rel":"","context":"In &quot;\uc77c\uc0c1&quot;","img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":146,"url":"https:\/\/blog.box.kr\/?p=146","url_meta":{"origin":685,"position":5},"title":"\ud504\ub85c\uadf8\ub7a8 \ubc30\uc6b0\uae30.. \uc2a4\ud06c\ub77c\uce58..","date":"2014-06-29","format":false,"excerpt":"http:\/\/scratch.mit.edu\/projects\/editor\/?tip_bar=getStarted \uc624.. \uc628\ub77c\uc778\uc73c\ub85c\ub3c4 \ub41c\ub2e4. \uba4b\uc9c0\ub124.. \u00a0","rel":"","context":"In &quot;\ucc38\uace0\ub97c \uc704\ud55c \uc800\uc7a5\ubb3c&quot;","img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"_links":{"self":[{"href":"https:\/\/blog.box.kr\/index.php?rest_route=\/wp\/v2\/posts\/685"}],"collection":[{"href":"https:\/\/blog.box.kr\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.box.kr\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.box.kr\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.box.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=685"}],"version-history":[{"count":0,"href":"https:\/\/blog.box.kr\/index.php?rest_route=\/wp\/v2\/posts\/685\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.box.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=685"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.box.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=685"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.box.kr\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=685"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}