{"id":78,"date":"2014-05-24T01:40:40","date_gmt":"2014-05-23T16:40:40","guid":{"rendered":"http:\/\/akal.co.kr\/?p=78"},"modified":"2017-04-18T12:10:58","modified_gmt":"2017-04-18T03:10:58","slug":"nginx%ec%97%90%ec%84%9c-html-%ed%99%95%ec%9e%a5%ec%9e%90-%ec%9e%91%eb%8f%99%ec%8b%9c%ed%82%a4%ea%b8%b0","status":"publish","type":"post","link":"https:\/\/akal.co.kr\/?p=78","title":{"rendered":"[\uc6b0\ubd84\ud22c, \ubbfc\ud2b8] Nginx\uc5d0\uc11c .html \ud655\uc7a5\uc790\ub97c PHP Script\ub85c \uc791\ub3d9\uc2dc\ud0a4\uae30"},"content":{"rendered":"<p><span class=\"dropcap\">N<\/span>ginx\ub97c \uc124\uce58\ud55c \ud6c4\uc5d0 PHP\ub97c \uc791\ub3d9\uc2dc\ucf30\ub294\ub370, \uc608\uc804\uc5d0 Apache2\uc5d0\uc11c \uc798\uc791\ub3d9\ud558\ub358 \ud655\uc7a5\uc790\uac00 .html \ub85c \ub41c PHP Script \ud30c\uc77c\ub4e4\uc774 access denied \ud398\uc774\uc9c0\ub97c \ubcf4\uc5ec\uc8fc\uba70 \uc791\ub3d9\uc744 \ud558\uc9c0 \uc54a\uc558\ub2e4. \uad6c\uae00\ub9c1\uc744 \ud574\ubcf4\ub2c8 \ub2e4\uc74c\uacfc \ubcf4\uc548\ubb38\uc81c\ub85c \uc778\ud574\uc11c \uae30\ubcf8\uc801\uc73c\ub85c .php\ub9cc \uc791\ub3d9\ud558\ub3c4\ub85d \uc124\uc815\uc774 \ub418\uc5b4\uc788\uc5c8\ub2e4. \ub530\ub77c\uc11c .php \uc678\uc5d0 .html\uc774\ub098 .htm \ub4f1\uc744 PHP Script \ud30c\uc77c\ub85c \uc778\uc2dd\uc2dc\ud0a4\ub824\uba74 \ub2e4\uc74c\uacfc \uac19\uc740 \uc808\ucc28\ub97c \ud1b5\ud574 \uc124\uc815\ud558\uba74 \ub41c\ub2e4.<\/p>\n<blockquote><p>\uc124\uc815\ud55c \uc2dc\uc2a4\ud15c\ud658\uacbd<br \/>\nUbuntu 14.04 LTS<br \/>\nLinux Mint 17 Qiana<br \/>\nphp5-fpm (PHP 5.5.9-1ubuntu4)<br \/>\nNginx (nginx\/1.4.6 (Ubuntu))<\/p><\/blockquote>\n<p>\ud558\ub2e8\uc758 \uc18c\uc2a4\ucf54\ub4dc\uc5d0 \ub9c8\uc6b0\uc2a4\ub97c \uac00\uc838\ub2e4 \ub193\uc73c\uba74 \uba54\ub274\uac00 Overlay \ub418\ub294\ub370 \uadf8 \uba54\ub274\uc911\uc5d0 Copy\ub97c \uc120\ud0dd\ud558\uba74 \uc27d\uac8c \uc18c\uc2a4\ub97c \ubd99\uc5ec \ub123\uc744\uc218 \uc788\uc2b5\ub2c8\ub2e4.<\/p>\n<p>1. \uc544\ub798\uc758 \ud30c\uc77c\uc744 vi\ub85c \uc5f0\ub2e4.<\/p>\n<pre class=\"theme:github lang:sh highlight:0 decode:true\" >sudo vi \/etc\/php5\/fpm\/pool.d\/www.conf<\/pre>\n<p>2. \uc704\uc758 \ud30c\uc77c\uc744 \uc5f4\uc5b4 \ub2e4\uc74c\uc758 \ub0b4\uc6a9\uc744 \ub9e8\ud558\ub2e8\uc5d0 \ucd94\uac00\ud558\uac70\ub098 ;(\uc138\ubbf8\ucf5c\ub860) \uc744 \uc0ad\uc81c\ud558\uc5ec \uc8fc\uc11d\uc744 \ud574\uc81c\ud574\uc900\ub2e4.<\/p>\n<pre class=\"theme:github lang:sh highlight:0 decode:true\" >security.limit_extensions = .php .php3 .php4 .php5 .html .htm<\/pre>\n<p>3. Nginx \uc0ac\uc774\ud2b8 \uc124\uc815 \ud30c\uc77c\uc744 vi\ub85c \uc5f0\ub2e4.<\/p>\n<pre class=\"theme:github lang:sh highlight:0 decode:true\" >sudo vi \/etc\/nginx\/sites-available\/\uc0ac\uc774\ud2b8\uc124\uc815\ud30c\uc77c\uba85<\/pre>\n<p>4. \ub2e4\uc74c\uc758 \ub0b4\uc6a9\uc744 \uc218\uc815\ud55c\ub2e4.<\/p>\n<pre class=\"theme:github lang:sh highlight:0 decode:true\" >\uc218\uc815\uc804\r\n        location ~ \\.php$ {\r\n                  ...\r\n        }\r\n\r\n\uc218\uc815\ud6c4\r\n        location ~ \\.(php|html|htm)$ {\r\n                  ...\r\n        }<\/pre>\n<p>5. Nginx\uc640 php5-fpm\uc744 \uc7ac\uc2dc\ub3d9 \uc2dc\ud0a8\ub2e4.<\/p>\n<pre class=\"theme:github lang:sh highlight:0 decode:true\" >sudo service nginx restart\r\nsudo service php5-fpm restart\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Nginx\ub97c \uc124\uce58\ud55c \ud6c4\uc5d0 PHP\ub97c \uc791\ub3d9\uc2dc\ucf30\ub294\ub370, \uc608\uc804\uc5d0 Apache2\uc5d0\uc11c \uc798\uc791\ub3d9\ud558\ub358 \ud655\uc7a5\uc790\uac00 .html \ub85c \ub41c PHP Script \ud30c\uc77c\ub4e4\uc774 access denied \ud398\uc774\uc9c0\ub97c \ubcf4\uc5ec\uc8fc\uba70 \uc791\ub3d9\uc744 \ud558\uc9c0 \uc54a\uc558\ub2e4. \uad6c\uae00\ub9c1\uc744 \ud574\ubcf4\ub2c8 \ub2e4\uc74c\uacfc \ubcf4\uc548\ubb38\uc81c\ub85c \uc778\ud574\uc11c \uae30\ubcf8\uc801\uc73c\ub85c .php\ub9cc \uc791\ub3d9\ud558\ub3c4\ub85d \uc124\uc815\uc774 \ub418\uc5b4\uc788\uc5c8\ub2e4. \ub530\ub77c\uc11c .php&#46;&#46;&#46;<\/p>\n","protected":false},"author":1,"featured_media":82,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[46,10],"tags":[40,39,43,41,37,38,44,42,45],"_links":{"self":[{"href":"https:\/\/akal.co.kr\/index.php?rest_route=\/wp\/v2\/posts\/78"}],"collection":[{"href":"https:\/\/akal.co.kr\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/akal.co.kr\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/akal.co.kr\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/akal.co.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=78"}],"version-history":[{"count":0,"href":"https:\/\/akal.co.kr\/index.php?rest_route=\/wp\/v2\/posts\/78\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/akal.co.kr\/index.php?rest_route=\/wp\/v2\/media\/82"}],"wp:attachment":[{"href":"https:\/\/akal.co.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=78"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/akal.co.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=78"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/akal.co.kr\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=78"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}