{"id":140,"date":"2020-08-03T01:24:32","date_gmt":"2020-08-02T16:24:32","guid":{"rendered":"http:\/\/www.kowanas.com\/tech\/?p=140"},"modified":"2020-08-07T05:24:03","modified_gmt":"2020-08-06T20:24:03","slug":"python-cgi","status":"publish","type":"post","link":"https:\/\/www.kowanas.com\/tech\/2020\/08\/03\/python-cgi\/","title":{"rendered":"Python CGI Apache2 \uc11c\ubc84\uc640 \uc5f0\ub3d9 \uc644\ubcbd \uc815\ub9ac in Ubuntu"},"content":{"rendered":"\n<p>Python CGI Apache2 \uc11c\ubc84 \uc5f0\ub3d9\ud558\ub290\ub77c \uace0\uc0dd\ud558\ub2e4 \ub4dc\ub38c \uc131\uacf5\ud558\uc5ec \uae30\uc05c \ub9c8\uc74c\uc5d0 \uc800\uc640 \uac19\uc740 \uace0\ubbfc\uc5d0 \ube60\uc9c0\uc2e0 \ubd84\ub4e4\uc774 \ubd84\uba85\ud788 \uacc4\uc2e4\uac70\ub77c\uace0 \uc0dd\uac01\ud558\uace0 \uace7\ubc14\ub85c \uc791\uc131\ud569\ub2c8\ub2e4.<\/p>\n\n\n\n<p>WordPress\ub97c Apache2 \uc11c\ubc84\ub97c \ud1b5\ud574 Hosting \ud558\uace0 \uc788\uc5b4\uc11c nginx\ub4f1\uc774 \uc544\ub2cc Apache2 \uc11c\ubc84\ub97c \uc0ac\uc6a9\ud574\uc57c \ud588\uc5c8\uc2b5\ub2c8\ub2e4. flask\ub97c \ud1b5\ud574\uc11c \ud560 \uc218\ub3c4 \uc788\uc9c0\ub9cc, \ud55c \ub2e8\uacc4 \ub354 \uac70\uce58\ub294 \uac83 \uac19\uc544\uc11c \uac70\uce58\uc9c0 \uc54a\ub3c4\ub85d \ud574\ubcf4\uace0 \uc2f6\uc5c8\uc2b5\ub2c8\ub2e4.<\/p>\n\n\n\n<p>Apache2\uc640 python\uc740 \uc124\uce58\ub41c \uc804\uc81c\ub85c \ubcf8 \uae00\uc740 \uc2dc\uc791\ud558\uaca0\uc2b5\ub2c8\ub2e4.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">LoadModule cgi_module \/usr\/lib\/apache2\/modules\/mod_cgi.so<\/h2>\n\n\n\n<p><a href=\"https:\/\/httpd.apache.org\/docs\/2.2\/ko\/howto\/cgi.html\">CGI\uc5d0 \ub300\ud55c apache tutorial<\/a> \uc5d0 \uad00\ub828\ub41c \ubaa8\ub4c8\ub85c mod_cgi\uac00 \uc5b8\uae09\ub418\uc5b4 \uc788\uc5b4 \ucc3e\uc544\ubcf4\uba74 \/etc\/apache2\/mods-available\/ \ub514\ub809\ud1a0\ub9ac\uc5d0 cgi.load\uc640 cgid.load \ud30c\uc77c\uc774 \uc788\ub294 \uac83\uc744 \ud655\uc778\ud558\uc600\uc2b5\ub2c8\ub2e4.<\/p>\n\n\n\n<p>\uacb0\uad6d\uc740 \uc5ec\uae30\uac00 \ud568\uc815\uc785\ub2c8\ub2e4.<\/p>\n\n\n\n<p><strong>apache2.conf \ud30c\uc77c\uc5d0 \ub2e4\uc74c\uacfc \uac19\uc774 mods-enabled \ub514\ub809\ud1a0\ub9ac\uc758 config \ud30c\uc77c\ub4e4\uc744 loading\ud558\uace0 \uc788\uc5c8\uc2b5\ub2c8\ub2e4.<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>IncludeOptional mods-enabled\/*.load<\/code><\/pre>\n\n\n\n<p> \ub530\ub77c\uc11c, \ub2e4\uc74c\uacfc \uac19\uc774 \ud574\uc8fc\uc5b4\uc57c \ud569\ub2c8\ub2e4.<\/p>\n\n\n\n<p>\/etc\/apache2\/mods-enabled\/ \ub514\ub809\ud1a0\ub9ac\ub85c \uc774\ub3d9\ud558\uc5ec \ub2e4\uc74c\uacfc \uac19\uc774 symbolic link\ub97c \ub9cc\ub4e4\uc5b4\uc90d\ub2c8\ub2e4.<\/p>\n\n\n\n<p class=\"has-text-color has-luminous-vivid-orange-color\"><strong>sudo ln -s ..\/mods-available\/cgi.load cgi.load<\/strong><\/p>\n\n\n\n<p>ls -la cgi.load \ud558\uba74 \ub2e4\uc74c\uacfc \uac19\uc774 \uc0dd\uc131\ub428\uc744 \uc54c \uc218 \uc788\uc2b5\ub2c8\ub2e4.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>lrwxrwxrwx 1 root root 26 Aug  2 13:14 cgi.load -> ..\/mods-available\/cgi.load<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">ScriptAlias \uc124\uc815\ud558\uae30<\/h2>\n\n\n\n<p>ScriptAlias\ub294 \ud2b9\uc815 \ub514\ub809\ud1a0\ub9ac\ub97c CGI \ud504\ub85c\uadf8\ub7a8\uc6a9\uc73c\ub85c \uc801\uc6a9\ud560 \ub54c \uc0ac\uc6a9\ud55c\ub2e4. \uc77c\ubc18\uc801\uc73c\ub85c Web Hosting\uc744 \ud558\ub294 \ub514\ub809\ud1a0\ub9ac (DocumentRoot)\uac00 \uc544\ub2cc \ub2e4\ub978 \uacf3\uc744 \uc9c0\uc815\ud569\ub2c8\ub2e4.<\/p>\n\n\n\n<p class=\"has-text-color has-luminous-vivid-orange-color\"><strong>ScriptAlias \/api\/ \/var\/www\/api\/<\/strong><\/p>\n\n\n\n<p>\uadf8\ub7fc \ube0c\ub77c\uc6b0\uc800\uc5d0\uc11c\ub294 \ub2e4\uc74c\uacfc \uac19\uc774 \uc785\ub825\ud558\uba74 \/var\/www\/api\/test.py \uc758 \ucf54\ub4dc\uac00 \uc2e4\ud589\ub429\ub2c8\ub2e4.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>http:\/\/www.kowanas.com\/api\/test.py<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">CGI \uc2e4\ud589 \ud5c8\uc6a9\ud558\uace0 \ud655\uc7a5\uc790 \uc9c0\uc815\ud558\uae30<\/h2>\n\n\n\n<p class=\"has-text-color has-luminous-vivid-orange-color\"><strong>Options +ExecCGI   <\/strong><\/p>\n\n\n\n<p class=\"has-text-color has-luminous-vivid-orange-color\"><strong>AddHandler cgi-script .py <\/strong><\/p>\n\n\n\n<p>\ud2b9\uc815 \ub514\ub809\ud1a0\ub9ac\uc5d0 CGI \uc2e4\ud589\uc744 \ud5c8\uc6a9\ud558\uace0 .py \ud655\uc7a5\uc790\uac00 CGI \ud504\ub85c\uadf8\ub7a8 \ud30c\uc77c\uc784\uc744 \uc9c0\uc815\ud558\uc600\uc2b5\ub2c8\ub2e4.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Config \uc608\uc81c<\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;VirtualHost *:80>\nServerAdmin admin@kowanas.com\nDocumentRoot \/var\/www\/html\/\nServerName api.kowanas.com\nScriptAlias \/api\/ \/var\/www\/api\/\n&lt;Directory \/var\/www\/api>\n  Options +ExecCGI\n  AddHandler cgi-script .py\n&lt;\/Directory>\n&lt;\/VirtualHost><\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Python CGI Code \uc791\uc131<\/h2>\n\n\n\n<p>\uc2e4\ud589 \ud30c\uc77c \uc9c0\uc815\ud574\uc90d\ub2c8\ub2e4. \uc804 python3\ub97c \uc0ac\uc6a9\ud558\uc600\uae30 \ub54c\ubb38\uc5d0 \uc774\ub807\uac8c \ud588\uad6c\uc694. python 2.x \ub97c \uc0ac\uc6a9\ud558\uc2dc\ub294 \ubd84\ub4e4\uc740 python\uc73c\ub85c \uc785\ub825\ud558\uac70\ub098 \uc815\ud655\ud55c \uc2e4\ud589 \ud30c\uc77c\uc744 \ucc3e\uc544\uc11c \uc0ac\uc6a9\ud558\uc2dc\uba74 \ub429\ub2c8\ub2e4.<\/p>\n\n\n\n<p class=\"has-text-color has-luminous-vivid-orange-color\"><strong>#!\/usr\/bin\/python3<\/strong><\/p>\n\n\n\n<p>python cgi library\ub97c import \ud569\ub2c8\ub2e4.<\/p>\n\n\n\n<p>python standard library\ub85c \uc124\uce58 \ub418\uc5b4 \uc788\uc73c\ub2c8 \ub530\ub85c \uc124\uce58\ub294 \uc548\ud558\uc154\ub3c4 \ub429\ub2c8\ub2e4.<\/p>\n\n\n\n<p class=\"has-text-color has-luminous-vivid-orange-color\"><strong>import cgi<\/strong><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Python CGI Code \uc608\uc81c<\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code>#!\/usr\/bin\/python3\nimport cgi\nprint(\"Content-type: text\/plain;charset=utf-8\")\nprint()\nprint('hello')<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Python CGI \ud30c\uc77c \uc2e4\ud589 \ud30c\uc77c\ub85c \ubcc0\uacbd<\/h2>\n\n\n\n<p class=\"has-text-color has-luminous-vivid-orange-color\"><strong>chmod a+x &lt;\ud30c\uc77c&gt;<\/strong><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\uc624\ub958 \uc0c1\ud669<\/h2>\n\n\n\n<p>\uc608\ub97c \ub4e4\uc5b4 \uc704 python Code\ub97c index.py\ub77c\ub294 \ud30c\uc77c\ub85c \uc800\uc7a5\ud55c \ub4a4, Browser\ub85c http:\/\/www.kowanas.com\/api\/index.py \uc744 \uc2e4\ud589\ud560 \uacbd\uc6b0 \ub2e4\uc74c\uacfc \uac19\uc774 \ub098\uc628\ub2e4\uba74 \uc131\uacf5\uc785\ub2c8\ub2e4.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"371\" height=\"105\" src=\"https:\/\/www.kowanas.com\/tech\/wp-content\/uploads\/sites\/2\/2020\/08\/image-2.png\" alt=\"Python CGI \uc2e4\ud589 \uacb0\uacfc\" class=\"wp-image-142\" srcset=\"https:\/\/www.kowanas.com\/tech\/wp-content\/uploads\/sites\/2\/2020\/08\/image-2.png 371w, https:\/\/www.kowanas.com\/tech\/wp-content\/uploads\/sites\/2\/2020\/08\/image-2-300x85.png 300w\" sizes=\"auto, (max-width: 371px) 100vw, 371px\" \/><\/figure>\n\n\n\n<p>\ud558\uc9c0\ub9cc \ub2e4\uc74c\uacfc \uac19\uc740 \uc0c1\ud669\ub4e4\uc774 \uc788\uc744 \uc218 \uc788\uc2b5\ub2c8\ub2e4.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Python Code \uadf8\ub300\ub85c \ubcf4\uc784<\/h4>\n\n\n\n<p>\uac1c\uc778\uc801\uc73c\ub85c \uc774 \ubb38\uc81c\uc5d0 \uc624\ub798 \ubd09\ucc29\ud588\uc5c8\uc2b5\ub2c8\ub2e4.<\/p>\n\n\n\n<p>\uc6d0\uc778\uc740 LoadModule\uc774 \uc788\ub294 cgi.load \ud30c\uc77c\uc744 mods-enabled\uc5d0 symbolic link\ub97c \ub9cc\ub4e4\uc9c0 \uc54a\uc740\uac8c \uc6d0\uc778\uc774\uc5c8\uc2b5\ub2c8\ub2e4.<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\"><p>\uc989, \uc774 \uc6d0\uc778\uc740 CGI\ub85c \ub3d9\uc791\uc744 \ud558\uc9c0 \uc54a\uc74c\uc744 \uc758\ubbf8\ud558\ub2c8 \ucc98\uc74c\ubd80\ud130 \ub2e4\uc2dc \ud655\uc778\ud574\ubd10\uc57c \ud569\ub2c8\ub2e4.<\/p><\/blockquote>\n\n\n\n<h4 class=\"wp-block-heading\">Forbidden \uc73c\ub85c \uc2dc\uc791\ud558\ub294 \ubb38\uad6c<\/h4>\n\n\n\n<p>\uad8c\ud55c \ubb38\uc81c\uac00 \uc788\ub2e4\ub294 \ub73b\uc785\ub2c8\ub2e4 \ub610\ub294 Python \uc2e4\ud589 \ud30c\uc77c \uacbd\ub85c\ub97c \ud655\uc778\ud574\ubd10\uc57c\ud569\ub2c8\ub2e4.<\/p>\n\n\n\n<p>whereis python (3.x\uc77c \uacbd\uc6b0 whereis python3) \ub97c \ud574\ubcf4\uba74 \/usr\/bin\/python3 \uac00 \ub9de\ub294\uc9c0 \ud655\uc778\ud574\ubcfc \uc218 \uc788\uc2b5\ub2c8\ub2e4.<\/p>\n\n\n\n<p>\uad8c\ud55c\uc740 \uc55e\uc11c \uc124\uba85\ud55c chmod a+x &lt;\ud30c\uc77c&gt; \uc744 \ud574\uc57c \ud569\ub2c8\ub2e4.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Internal Server Error<\/h2>\n\n\n\n<p>\ud504\ub85c\uadf8\ub7a8\uc5d0 \uc624\ub958\uac00 \uc788\ub2e4\ub294 \uac83\uc73c\ub85c command line\uc5d0\uc11c python &lt;\ud30c\uc77c&gt; \uc744 \ud574\ubcf4\uba74 \uc5d0\ub7ec\ub97c \ud655\uc778\ud560 \uc218 \uc788\uc744 \uac83\uc73c\ub85c \ubcf4\uc785\ub2c8\ub2e4.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\ub9c8\uce58\uba70<\/h2>\n\n\n\n<p>\ubcc4 \ub0b4\uc6a9\uc774 \uc5c6\uace0 \ud55c\ubc88\ub9cc \uc131\uacf5\ud558\uba74 \ucc38 \uc26c\uc6b4 \uac83\uc744 \uba87 \uc77c \ud5e4\ub9f8\ub358 \uac83\uc73c\ub85c \ud639\uc2dc \uc5b4\ub824\uc6c0\uc774 \uc788\uc73c\uba74 \ub313\uae00 \ub0a8\uaca8\uc8fc\uc2dc\uba74 \ucd5c\ub300\ud55c \ud568\uaed8 \ud655\uc778\ud574\ubcf4\uaca0\uc2b5\ub2c8\ub2e4.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Python CGI Apache2 \uc11c\ubc84 \uc5f0\ub3d9\ud558\ub290\ub77c \uace0\uc0dd\ud558\ub2e4 \ub4dc\ub38c \uc131\uacf5\ud558\uc5ec \uae30\uc05c \ub9c8\uc74c\uc5d0 \uc800\uc640 \uac19\uc740 \uace0\ubbfc\uc5d0 \ube60\uc9c0\uc2e0 \ubd84\ub4e4\uc774 \ubd84\uba85\ud788 \uacc4\uc2e4\uac70\ub77c\uace0 \uc0dd\uac01\ud558\uace0 \uace7\ubc14\ub85c \uc791\uc131\ud569\ub2c8\ub2e4. WordPress\ub97c Apache2 \uc11c\ubc84\ub97c \ud1b5\ud574 Hosting \ud558\uace0 \uc788\uc5b4\uc11c nginx\ub4f1\uc774 \uc544\ub2cc Apache2 \uc11c\ubc84\ub97c \uc0ac\uc6a9\ud574\uc57c \ud588\uc5c8\uc2b5\ub2c8\ub2e4. flask\ub97c \ud1b5\ud574\uc11c \ud560 \uc218\ub3c4 \uc788\uc9c0\ub9cc, \ud55c \ub2e8\uacc4 \ub354 \uac70\uce58\ub294 \uac83 \uac19\uc544\uc11c \uac70\uce58\uc9c0 \uc54a\ub3c4\ub85d \ud574\ubcf4\uace0 \uc2f6\uc5c8\uc2b5\ub2c8\ub2e4. Apache2\uc640 python\uc740 \uc124\uce58\ub41c \uc804\uc81c\ub85c \ubcf8 \uae00\uc740 \uc2dc\uc791\ud558\uaca0\uc2b5\ub2c8\ub2e4. &#8230; <a title=\"Python CGI Apache2 \uc11c\ubc84\uc640 \uc5f0\ub3d9 \uc644\ubcbd \uc815\ub9ac in Ubuntu\" class=\"read-more\" href=\"https:\/\/www.kowanas.com\/tech\/2020\/08\/03\/python-cgi\/\" aria-label=\"Read more about Python CGI Apache2 \uc11c\ubc84\uc640 \uc5f0\ub3d9 \uc644\ubcbd \uc815\ub9ac in Ubuntu\">Read more<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[44,45,43],"class_list":["post-140","post","type-post","status-publish","format-standard","hentry","category-tech","tag-apache","tag-cgi","tag-python"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v25.0 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Python CGI Apache2 \uc11c\ubc84\uc640 \uc5f0\ub3d9 \uc644\ubcbd \uc815\ub9ac in Ubuntu - Kowana&#039;s tech<\/title>\n<meta name=\"description\" content=\"Python CGI Apache2 \uc11c\ubc84 \uc5f0\ub3d9\ud558\ub290\ub77c \uace0\uc0dd\ud558\ub2e4 \ub4dc\ub38c \uc131\uacf5\ud558\uc5ec \uae30\uc05c \ub9c8\uc74c\uc5d0 \uc800\uc640 \uac19\uc740 \uace0\ubbfc\uc5d0 \ube60\uc9c0\uc2e0 \ubd84\ub4e4\uc774 \ubd84\uba85\ud788 \uacc4\uc2e4\uac70\ub77c\uace0 \uc0dd\uac01\ud558\uace0 \uace7\ubc14\ub85c \uc791\uc131\ud569\ub2c8\ub2e4. \uc6b0\ubd84\ud22c\uc5d0\uc11c \uc124\uc815\ud55c \ub0b4\uc6a9\uc744 \ubc14\ud0d5\uc73c\ub85c \ud569\ub2c8\ub2e4.\uc774\ub300\ub85c \ub530\ub77c \ud558\uc2dc\uba74 \ub429\ub2c8\ub2e4.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.kowanas.com\/tech\/2020\/08\/03\/python-cgi\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Python CGI Apache2 \uc11c\ubc84\uc640 \uc5f0\ub3d9 \uc644\ubcbd \uc815\ub9ac in Ubuntu - Kowana&#039;s tech\" \/>\n<meta property=\"og:description\" content=\"Python CGI Apache2 \uc11c\ubc84 \uc5f0\ub3d9\ud558\ub290\ub77c \uace0\uc0dd\ud558\ub2e4 \ub4dc\ub38c \uc131\uacf5\ud558\uc5ec \uae30\uc05c \ub9c8\uc74c\uc5d0 \uc800\uc640 \uac19\uc740 \uace0\ubbfc\uc5d0 \ube60\uc9c0\uc2e0 \ubd84\ub4e4\uc774 \ubd84\uba85\ud788 \uacc4\uc2e4\uac70\ub77c\uace0 \uc0dd\uac01\ud558\uace0 \uace7\ubc14\ub85c \uc791\uc131\ud569\ub2c8\ub2e4. \uc6b0\ubd84\ud22c\uc5d0\uc11c \uc124\uc815\ud55c \ub0b4\uc6a9\uc744 \ubc14\ud0d5\uc73c\ub85c \ud569\ub2c8\ub2e4.\uc774\ub300\ub85c \ub530\ub77c \ud558\uc2dc\uba74 \ub429\ub2c8\ub2e4.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.kowanas.com\/tech\/2020\/08\/03\/python-cgi\/\" \/>\n<meta property=\"og:site_name\" content=\"Kowana&#039;s tech\" \/>\n<meta property=\"article:published_time\" content=\"2020-08-02T16:24:32+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2020-08-06T20:24:03+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.kowanas.com\/tech\/wp-content\/uploads\/sites\/2\/2020\/08\/image-2.png\" \/>\n<meta name=\"author\" content=\"kowana\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"kowana\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.kowanas.com\/tech\/2020\/08\/03\/python-cgi\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.kowanas.com\/tech\/2020\/08\/03\/python-cgi\/\"},\"author\":{\"name\":\"kowana\",\"@id\":\"https:\/\/www.kowanas.com\/tech\/#\/schema\/person\/190c7dff713254da763d4fe295be98af\"},\"headline\":\"Python CGI Apache2 \uc11c\ubc84\uc640 \uc5f0\ub3d9 \uc644\ubcbd \uc815\ub9ac in Ubuntu\",\"datePublished\":\"2020-08-02T16:24:32+00:00\",\"dateModified\":\"2020-08-06T20:24:03+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.kowanas.com\/tech\/2020\/08\/03\/python-cgi\/\"},\"wordCount\":159,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/www.kowanas.com\/tech\/#\/schema\/person\/190c7dff713254da763d4fe295be98af\"},\"image\":{\"@id\":\"https:\/\/www.kowanas.com\/tech\/2020\/08\/03\/python-cgi\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.kowanas.com\/tech\/wp-content\/uploads\/sites\/2\/2020\/08\/image-2.png\",\"keywords\":[\"Apache\",\"CGI\",\"Python\"],\"articleSection\":[\"Tech\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.kowanas.com\/tech\/2020\/08\/03\/python-cgi\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.kowanas.com\/tech\/2020\/08\/03\/python-cgi\/\",\"url\":\"https:\/\/www.kowanas.com\/tech\/2020\/08\/03\/python-cgi\/\",\"name\":\"Python CGI Apache2 \uc11c\ubc84\uc640 \uc5f0\ub3d9 \uc644\ubcbd \uc815\ub9ac in Ubuntu - Kowana&#039;s tech\",\"isPartOf\":{\"@id\":\"https:\/\/www.kowanas.com\/tech\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.kowanas.com\/tech\/2020\/08\/03\/python-cgi\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.kowanas.com\/tech\/2020\/08\/03\/python-cgi\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.kowanas.com\/tech\/wp-content\/uploads\/sites\/2\/2020\/08\/image-2.png\",\"datePublished\":\"2020-08-02T16:24:32+00:00\",\"dateModified\":\"2020-08-06T20:24:03+00:00\",\"description\":\"Python CGI Apache2 \uc11c\ubc84 \uc5f0\ub3d9\ud558\ub290\ub77c \uace0\uc0dd\ud558\ub2e4 \ub4dc\ub38c \uc131\uacf5\ud558\uc5ec \uae30\uc05c \ub9c8\uc74c\uc5d0 \uc800\uc640 \uac19\uc740 \uace0\ubbfc\uc5d0 \ube60\uc9c0\uc2e0 \ubd84\ub4e4\uc774 \ubd84\uba85\ud788 \uacc4\uc2e4\uac70\ub77c\uace0 \uc0dd\uac01\ud558\uace0 \uace7\ubc14\ub85c \uc791\uc131\ud569\ub2c8\ub2e4. \uc6b0\ubd84\ud22c\uc5d0\uc11c \uc124\uc815\ud55c \ub0b4\uc6a9\uc744 \ubc14\ud0d5\uc73c\ub85c \ud569\ub2c8\ub2e4.\uc774\ub300\ub85c \ub530\ub77c \ud558\uc2dc\uba74 \ub429\ub2c8\ub2e4.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.kowanas.com\/tech\/2020\/08\/03\/python-cgi\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.kowanas.com\/tech\/2020\/08\/03\/python-cgi\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.kowanas.com\/tech\/2020\/08\/03\/python-cgi\/#primaryimage\",\"url\":\"https:\/\/www.kowanas.com\/tech\/wp-content\/uploads\/sites\/2\/2020\/08\/image-2.png\",\"contentUrl\":\"https:\/\/www.kowanas.com\/tech\/wp-content\/uploads\/sites\/2\/2020\/08\/image-2.png\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.kowanas.com\/tech\/2020\/08\/03\/python-cgi\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.kowanas.com\/tech\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Python CGI Apache2 \uc11c\ubc84\uc640 \uc5f0\ub3d9 \uc644\ubcbd \uc815\ub9ac in Ubuntu\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.kowanas.com\/tech\/#website\",\"url\":\"https:\/\/www.kowanas.com\/tech\/\",\"name\":\"Kowana&#039;s tech\",\"description\":\"IT\ub97c \ubc30\uc6b0\uba74\uc11c \uacf5\uc720\ud558\uace0 \uc2f6\uc740 \uac83\ub4e4, \uc571, \uc6f9, \uac1c\ubc1c, \uc218\uc775, \uc131\uacf5\",\"publisher\":{\"@id\":\"https:\/\/www.kowanas.com\/tech\/#\/schema\/person\/190c7dff713254da763d4fe295be98af\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.kowanas.com\/tech\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\/\/www.kowanas.com\/tech\/#\/schema\/person\/190c7dff713254da763d4fe295be98af\",\"name\":\"kowana\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.kowanas.com\/tech\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/80a89adb37a55d376afb969e327758fb?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/80a89adb37a55d376afb969e327758fb?s=96&d=mm&r=g\",\"caption\":\"kowana\"},\"logo\":{\"@id\":\"https:\/\/www.kowanas.com\/tech\/#\/schema\/person\/image\/\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Python CGI Apache2 \uc11c\ubc84\uc640 \uc5f0\ub3d9 \uc644\ubcbd \uc815\ub9ac in Ubuntu - Kowana&#039;s tech","description":"Python CGI Apache2 \uc11c\ubc84 \uc5f0\ub3d9\ud558\ub290\ub77c \uace0\uc0dd\ud558\ub2e4 \ub4dc\ub38c \uc131\uacf5\ud558\uc5ec \uae30\uc05c \ub9c8\uc74c\uc5d0 \uc800\uc640 \uac19\uc740 \uace0\ubbfc\uc5d0 \ube60\uc9c0\uc2e0 \ubd84\ub4e4\uc774 \ubd84\uba85\ud788 \uacc4\uc2e4\uac70\ub77c\uace0 \uc0dd\uac01\ud558\uace0 \uace7\ubc14\ub85c \uc791\uc131\ud569\ub2c8\ub2e4. \uc6b0\ubd84\ud22c\uc5d0\uc11c \uc124\uc815\ud55c \ub0b4\uc6a9\uc744 \ubc14\ud0d5\uc73c\ub85c \ud569\ub2c8\ub2e4.\uc774\ub300\ub85c \ub530\ub77c \ud558\uc2dc\uba74 \ub429\ub2c8\ub2e4.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.kowanas.com\/tech\/2020\/08\/03\/python-cgi\/","og_locale":"en_US","og_type":"article","og_title":"Python CGI Apache2 \uc11c\ubc84\uc640 \uc5f0\ub3d9 \uc644\ubcbd \uc815\ub9ac in Ubuntu - Kowana&#039;s tech","og_description":"Python CGI Apache2 \uc11c\ubc84 \uc5f0\ub3d9\ud558\ub290\ub77c \uace0\uc0dd\ud558\ub2e4 \ub4dc\ub38c \uc131\uacf5\ud558\uc5ec \uae30\uc05c \ub9c8\uc74c\uc5d0 \uc800\uc640 \uac19\uc740 \uace0\ubbfc\uc5d0 \ube60\uc9c0\uc2e0 \ubd84\ub4e4\uc774 \ubd84\uba85\ud788 \uacc4\uc2e4\uac70\ub77c\uace0 \uc0dd\uac01\ud558\uace0 \uace7\ubc14\ub85c \uc791\uc131\ud569\ub2c8\ub2e4. \uc6b0\ubd84\ud22c\uc5d0\uc11c \uc124\uc815\ud55c \ub0b4\uc6a9\uc744 \ubc14\ud0d5\uc73c\ub85c \ud569\ub2c8\ub2e4.\uc774\ub300\ub85c \ub530\ub77c \ud558\uc2dc\uba74 \ub429\ub2c8\ub2e4.","og_url":"https:\/\/www.kowanas.com\/tech\/2020\/08\/03\/python-cgi\/","og_site_name":"Kowana&#039;s tech","article_published_time":"2020-08-02T16:24:32+00:00","article_modified_time":"2020-08-06T20:24:03+00:00","og_image":[{"url":"https:\/\/www.kowanas.com\/tech\/wp-content\/uploads\/sites\/2\/2020\/08\/image-2.png","type":"","width":"","height":""}],"author":"kowana","twitter_card":"summary_large_image","twitter_misc":{"Written by":"kowana","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.kowanas.com\/tech\/2020\/08\/03\/python-cgi\/#article","isPartOf":{"@id":"https:\/\/www.kowanas.com\/tech\/2020\/08\/03\/python-cgi\/"},"author":{"name":"kowana","@id":"https:\/\/www.kowanas.com\/tech\/#\/schema\/person\/190c7dff713254da763d4fe295be98af"},"headline":"Python CGI Apache2 \uc11c\ubc84\uc640 \uc5f0\ub3d9 \uc644\ubcbd \uc815\ub9ac in Ubuntu","datePublished":"2020-08-02T16:24:32+00:00","dateModified":"2020-08-06T20:24:03+00:00","mainEntityOfPage":{"@id":"https:\/\/www.kowanas.com\/tech\/2020\/08\/03\/python-cgi\/"},"wordCount":159,"commentCount":0,"publisher":{"@id":"https:\/\/www.kowanas.com\/tech\/#\/schema\/person\/190c7dff713254da763d4fe295be98af"},"image":{"@id":"https:\/\/www.kowanas.com\/tech\/2020\/08\/03\/python-cgi\/#primaryimage"},"thumbnailUrl":"https:\/\/www.kowanas.com\/tech\/wp-content\/uploads\/sites\/2\/2020\/08\/image-2.png","keywords":["Apache","CGI","Python"],"articleSection":["Tech"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.kowanas.com\/tech\/2020\/08\/03\/python-cgi\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.kowanas.com\/tech\/2020\/08\/03\/python-cgi\/","url":"https:\/\/www.kowanas.com\/tech\/2020\/08\/03\/python-cgi\/","name":"Python CGI Apache2 \uc11c\ubc84\uc640 \uc5f0\ub3d9 \uc644\ubcbd \uc815\ub9ac in Ubuntu - Kowana&#039;s tech","isPartOf":{"@id":"https:\/\/www.kowanas.com\/tech\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.kowanas.com\/tech\/2020\/08\/03\/python-cgi\/#primaryimage"},"image":{"@id":"https:\/\/www.kowanas.com\/tech\/2020\/08\/03\/python-cgi\/#primaryimage"},"thumbnailUrl":"https:\/\/www.kowanas.com\/tech\/wp-content\/uploads\/sites\/2\/2020\/08\/image-2.png","datePublished":"2020-08-02T16:24:32+00:00","dateModified":"2020-08-06T20:24:03+00:00","description":"Python CGI Apache2 \uc11c\ubc84 \uc5f0\ub3d9\ud558\ub290\ub77c \uace0\uc0dd\ud558\ub2e4 \ub4dc\ub38c \uc131\uacf5\ud558\uc5ec \uae30\uc05c \ub9c8\uc74c\uc5d0 \uc800\uc640 \uac19\uc740 \uace0\ubbfc\uc5d0 \ube60\uc9c0\uc2e0 \ubd84\ub4e4\uc774 \ubd84\uba85\ud788 \uacc4\uc2e4\uac70\ub77c\uace0 \uc0dd\uac01\ud558\uace0 \uace7\ubc14\ub85c \uc791\uc131\ud569\ub2c8\ub2e4. \uc6b0\ubd84\ud22c\uc5d0\uc11c \uc124\uc815\ud55c \ub0b4\uc6a9\uc744 \ubc14\ud0d5\uc73c\ub85c \ud569\ub2c8\ub2e4.\uc774\ub300\ub85c \ub530\ub77c \ud558\uc2dc\uba74 \ub429\ub2c8\ub2e4.","breadcrumb":{"@id":"https:\/\/www.kowanas.com\/tech\/2020\/08\/03\/python-cgi\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.kowanas.com\/tech\/2020\/08\/03\/python-cgi\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.kowanas.com\/tech\/2020\/08\/03\/python-cgi\/#primaryimage","url":"https:\/\/www.kowanas.com\/tech\/wp-content\/uploads\/sites\/2\/2020\/08\/image-2.png","contentUrl":"https:\/\/www.kowanas.com\/tech\/wp-content\/uploads\/sites\/2\/2020\/08\/image-2.png"},{"@type":"BreadcrumbList","@id":"https:\/\/www.kowanas.com\/tech\/2020\/08\/03\/python-cgi\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.kowanas.com\/tech\/"},{"@type":"ListItem","position":2,"name":"Python CGI Apache2 \uc11c\ubc84\uc640 \uc5f0\ub3d9 \uc644\ubcbd \uc815\ub9ac in Ubuntu"}]},{"@type":"WebSite","@id":"https:\/\/www.kowanas.com\/tech\/#website","url":"https:\/\/www.kowanas.com\/tech\/","name":"Kowana&#039;s tech","description":"IT\ub97c \ubc30\uc6b0\uba74\uc11c \uacf5\uc720\ud558\uace0 \uc2f6\uc740 \uac83\ub4e4, \uc571, \uc6f9, \uac1c\ubc1c, \uc218\uc775, \uc131\uacf5","publisher":{"@id":"https:\/\/www.kowanas.com\/tech\/#\/schema\/person\/190c7dff713254da763d4fe295be98af"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.kowanas.com\/tech\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":["Person","Organization"],"@id":"https:\/\/www.kowanas.com\/tech\/#\/schema\/person\/190c7dff713254da763d4fe295be98af","name":"kowana","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.kowanas.com\/tech\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/80a89adb37a55d376afb969e327758fb?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/80a89adb37a55d376afb969e327758fb?s=96&d=mm&r=g","caption":"kowana"},"logo":{"@id":"https:\/\/www.kowanas.com\/tech\/#\/schema\/person\/image\/"}}]}},"_links":{"self":[{"href":"https:\/\/www.kowanas.com\/tech\/wp-json\/wp\/v2\/posts\/140","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.kowanas.com\/tech\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.kowanas.com\/tech\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.kowanas.com\/tech\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.kowanas.com\/tech\/wp-json\/wp\/v2\/comments?post=140"}],"version-history":[{"count":3,"href":"https:\/\/www.kowanas.com\/tech\/wp-json\/wp\/v2\/posts\/140\/revisions"}],"predecessor-version":[{"id":145,"href":"https:\/\/www.kowanas.com\/tech\/wp-json\/wp\/v2\/posts\/140\/revisions\/145"}],"wp:attachment":[{"href":"https:\/\/www.kowanas.com\/tech\/wp-json\/wp\/v2\/media?parent=140"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.kowanas.com\/tech\/wp-json\/wp\/v2\/categories?post=140"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.kowanas.com\/tech\/wp-json\/wp\/v2\/tags?post=140"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}