{"id":56,"date":"2011-08-30T02:36:58","date_gmt":"2011-08-30T02:36:58","guid":{"rendered":"http:\/\/www.uturtle.com\/blog\/archives\/56"},"modified":"2013-12-17T02:42:09","modified_gmt":"2013-12-16T17:42:09","slug":"lighttpd-%ea%b0%84%eb%8b%a8%ed%95%9c-%ec%84%a4%ec%b9%98-%eb%b0%8f-cgi-%ec%84%a4%ec%a0%95-%ea%b7%b8%eb%a6%ac%ea%b3%a0-%ec%82%ac%ec%9a%a9%ec%9e%90-%eb%94%94%eb%a0%89%ed%86%a0%eb%a6%ac-%ec%82%ac%ec%9a%a9","status":"publish","type":"post","link":"https:\/\/www.jinukbaek.com\/blog\/ko\/archives\/56","title":{"rendered":"lighttpd \uac04\ub2e8\ud55c \uc124\uce58 \ubc0f CGI \uc124\uc815 \uadf8\ub9ac\uace0 \uc0ac\uc6a9\uc790 \ub514\ub809\ud1a0\ub9ac \uc0ac\uc6a9, https \uc124\uc815 &#8211; \uc6b0\ubd84\ud22c"},"content":{"rendered":"<p>1. lighttpd\uc758 \uc124\uce58<br \/>\n&gt; sudo apt-get install lighttpd<\/p>\n<p>2. \ud3ec\ud2b8 \ubcc0\uacbd<br \/>\n&gt; sudo vi \/etc\/lighttpd\/lighttpd.conf<\/p>\n<div class=\"txc-textbox\" style=\"background-color: #eeeeee; border-width: 1px; border-color: #eeeeee; border-style: solid; padding: 10px;\">\n<p style=\"margin: 0px;\"># \uc544\ub798 \ubb38\uc7a5 \ucd94\uac00<br \/>\nserver.port = 8081<\/p>\n<\/div>\n<p>3. \ub514\ub809\ud1a0\ub9ac view disable\ud558\uae30<br \/>\n&gt; sudo vi \/etc\/lighttpd\/lighttpd.conf<\/p>\n<div class=\"txc-textbox\" style=\"background-color: #eeeeee; border-width: 1px; border-color: #eeeeee; border-style: solid; padding: 10px;\">\n<p style=\"margin: 0px;\">server.dir-listing = &#8220;disable&#8221;<\/p>\n<\/div>\n<p>4. lighttpd cgi \uc0ac\uc6a9<br \/>\n&gt; sudo vi \/etc\/lighttpd\/lighttpd.conf<\/p>\n<div class=\"txc-textbox\" style=\"background-color: #eeeeee; border-width: 1px; border-color: #eeeeee; border-style: solid; padding: 10px;\">\n<p style=\"margin: 0px;\">server.modules = (<br \/>\n&#8230;<br \/>\n&#8220;mod_cgi&#8221;, \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0# \ucd94\uac00<br \/>\n)<\/p>\n<p>cgi.assign = (&#8220;.cgi&#8221; =&gt; &#8220;&#8221;) \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0# \ucd94\uac00<\/p>\n<\/div>\n<p># &#8220;.cgi&#8221; =&gt; &#8220;&#8221; \u00a0(\uc790\uccb4 \uc2e4\ud589\uc744 \uc758\ubbf8) ,<br \/>\n# &#8220;.pl&#8221; =&gt; &#8220;\/usr\/bin\/perl&#8221; \u00a0(.pl\uc77c \uacbd\uc6b0 perl \ud504\ub85c\uadf8\ub7a8\uc744 \uc2e4\ud589)<\/p>\n<p>5. \uac1c\uc778\ud654 \ud3f4\ub354 \uc124\uc815 (\u00a0<a href=\"http:\/\/redmine.lighttpd.net\/wiki\/1\/Docs:ModUserDir\">http:\/\/redmine.lighttpd.net\/wiki\/1\/Docs:ModUserDir<\/a>\u00a0)<br \/>\n&gt; sudo vi \/etc\/lighttpd\/lighttpd.conf<\/p>\n<div class=\"txc-textbox\" style=\"background-color: #eeeeee; border-width: 1px; border-color: #eeeeee; border-style: solid; padding: 10px;\">\n<p style=\"margin: 0px;\">server.modules = (<\/p>\n<p style=\"margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 4em;\">&#8230;<br \/>\n&#8220;mod_userdir&#8221;,<\/p>\n<p style=\"margin: 0px;\">)<\/p>\n<p>userdir.path = &#8220;public_html&#8221; \u00a0 \u00a0# ~ \uc544\ub798\uc758 \ud3f4\ub354\ub97c \uc6f9 \ud398\uc774\uc9c0\uc758 \uba54\uc778\uc73c\ub85c \uc120\ud0dd<br \/>\nuserdir.exclude-user = (&#8220;root&#8221;, &#8220;postmaster&#8221;) \u00a0# \uc0ac\uc6a9\ud558\uc9c0 \uc54a\uc744 \uc720\uc800 \uc124\uc815<\/p>\n<p style=\"margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 4em;\">\n<\/div>\n<p>6. ssl \uc124\uc815 (\u00a0<a href=\"http:\/\/redmine.lighttpd.net\/wiki\/1\/Docs:SSL\">http:\/\/redmine.lighttpd.net\/wiki\/1\/Docs:SSL<\/a>\u00a0)<br \/>\n&gt; sudo vi \/etc\/lighttpd\/lighttpd.conf<\/p>\n<div class=\"txc-textbox\" style=\"background-color: #eeeeee; border-width: 1px; border-color: #eeeeee; border-style: solid; padding: 10px;\">\n<p style=\"margin: 0px;\">$SERVER[&#8220;socket&#8221;] == &#8220;:8082&#8221; {<\/p>\n<p style=\"margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 4em;\">ssl.engine = &#8220;enable&#8221;<br \/>\nssl.pemfile = &#8220;\/var\/www\/ssl\/myserv.pem&#8221;<\/p>\n<p style=\"margin: 0px;\">}<\/p>\n<\/div>\n<p>\uc778\uc99d\uc11c \ud30c\uc77c\uc740 \ubcf4\uc548 \uc124\uc815\uc744 400\uc73c\ub85c \ud560 \uac83!<\/p>\n<p>7. \uc11c\ubc84 \uc7ac\uc2dc\uc791<br \/>\n&gt; sudo \/etc\/init.d\/lighttpd restart<\/p>\n","protected":false},"excerpt":{"rendered":"<p>1. lighttpd\uc758 \uc124\uce58 &gt; sudo apt-get install lighttpd 2. \ud3ec\ud2b8 \ubcc0\uacbd &gt; sudo vi \/etc\/lighttpd\/lighttpd.conf # \uc544\ub798 \ubb38\uc7a5<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"advanced_seo_description":"","jetpack_seo_html_title":"","jetpack_seo_noindex":false,"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[44],"tags":[],"class_list":["post-56","post","type-post","status-publish","format-standard","hentry","category-computer-etc"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p8gT1J-U","_links":{"self":[{"href":"https:\/\/www.jinukbaek.com\/blog\/wp-json\/wp\/v2\/posts\/56","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.jinukbaek.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.jinukbaek.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.jinukbaek.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.jinukbaek.com\/blog\/wp-json\/wp\/v2\/comments?post=56"}],"version-history":[{"count":2,"href":"https:\/\/www.jinukbaek.com\/blog\/wp-json\/wp\/v2\/posts\/56\/revisions"}],"predecessor-version":[{"id":256,"href":"https:\/\/www.jinukbaek.com\/blog\/wp-json\/wp\/v2\/posts\/56\/revisions\/256"}],"wp:attachment":[{"href":"https:\/\/www.jinukbaek.com\/blog\/wp-json\/wp\/v2\/media?parent=56"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.jinukbaek.com\/blog\/wp-json\/wp\/v2\/categories?post=56"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.jinukbaek.com\/blog\/wp-json\/wp\/v2\/tags?post=56"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}