ÄÄ°¡À̹ö      2008/02/26 (09:48:41)     5244   
   CGI ¿¡·¯°¡...¤Ì¤Ì [1]
ȨÆäÀÌÁöºô´õ¸¦ ¼³Á¤ÇÏ·Á´Âµ¥ ¿¡·¯°¡ ³³´Ï´Ù.. (HTTP 500 - ÀϹÝÀûÀÎ ¼­¹ö ³»ºÎ¿À·ù°¡ ¹ß»ýÇÏ¿´½À´Ï´Ù. )
¾Æ·¡´Â ºô´õȸ»ç°¡ ¿Ã·Á³õÀº ¿¡·¯´ëó¹ýÀ̱¸¿ä..
ºü¸¥Á¶Ä¡ ºÎŹµå¸±²²¿ä- (ȨÇÇ´Â http://kb108.cn ÀÔ´Ï´Ù.)


====================================================================








<div id="title" style="width: 550px; height: 25px">Åõ°Ô´õ ¿î¿µ¿¡ ¸Â´Â ¾ÆÆÄÄ¡ À¥¼­¹ö ¼³Á¤ </div>
<div id="content_a" style="width: 550px; height: 25px"><div>¾Æ·¡ ¼³Á¤Àº ¸®´ª½º ¼­¹öÀÇ °ü¸®ÀÚ(root±ÇÇÑÀÚ)°¡ Á÷Á¢ ó¸®ÇØ¾ß ÇÒ ¹®Á¦ ÀÔ´Ï´Ù. </div><div>À¥È£½ºÆÃÀ» ¹Þ°í ÀÖÀ¸½Å ºÐÀº Åõ°Ô´õ ¼³Ä¡ ÈÄ ÇÁ·Î±×·¥ÀÌ Á¤»óÀûÀ¸·Î ÀÛµ¿µÇÁö ¾ÊÀ» °æ¿ì ¼­¹ö °ü¸®ÀÚ¿¡°Ô Á÷Á¢ ÀÌ ÆäÀÌÁö¸¦ º¸¿©Áָ鼭 CGI ÇÁ·Î±×·¥ÀÌ ÀÛµ¿µÉ ¼ö ÀÖµµ·Ï ¿äûÀ» ÇÏ¼Å¾ß ÇÕ´Ï´Ù.</div><div>*******************************************************************************</div>
<div>¾ÆÆÄÄ¡ ¼­¹öÀÇ conf/httpd.conf ¿¡¼­ ¾Æ·¡ 4°÷À» ã¾Æ¼­ ¶È°°ÀÌ ÇØ ÁÖ¼¼¿ä.
±×·¯¸é CGI ÆÄÀÏÀÌ ½ÇÇàÀÌ µÉ °Ì´Ï´Ù.
ÀÌ·¸°Ô ÇßÀ½¿¡µµ ½ÇÇàÀÌ µÇÁö ¾Ê´Â´Ù¸é ´Ù¸¥ ¿øÀÎÀ» ã¾ÆºÁ¾ß ÇÕ´Ï´Ù.</div><div>
¾ÆÆÄÄ¡ ¼­¹ö µð·ºÅ丮 :
/usr/local/apache/conf</div><div>¶Ç´Â
/etc/httpd/conf</div>
<div>¾Æ·¡ ÆÄÀÏ(httpd.conf)¿¡¼­ ¼öÁ¤À» ÇÏ½Ã°í ¾ÆÆÄÄ¡ ¼­¹ö¸¦ ´Ù½Ã ½ÃÀÛ(restart)ÇØ ÁÖ¼¼¿ä.
/usr/local/apache/conf/httpd.conf</div>

<div>[È®ÀÎ1]</div><div>#
# Each directory to which Apache has access, can be configured with respect
# to which services and features are allowed and/or disabled in that
# directory (and its subdirectories).
#
# First, we configure the "default" to be a very restrictive set of
# permissions. 
#
# ¾Æ·¡¿¡¼­ ExecCGI°¡ ¹Ýµå½Ã Æ÷ÇԵǾî¾ß ÇÕ´Ï´Ù.</div><div># ÀÌ ¼³Á¤Àº ȨÆäÀÌÁö »ó¿¡¼­ CGI ÇÁ·Î±×·¥À» »ç¿ëÇÒ ¼ö ÀÖµµ·Ï ÇÕ´Ï´Ù.</div><div># AllowOverrideÀº All·Î ¼³Á¤ÇØ µÎ¼¼¿ä.</div><div>Options FollowSymLinks Includes ExecCGI
AllowOverride All
</div>

<div>[È®ÀÎ2]</div><div>#
# This should be changed to whatever you set DocumentRoot to.
#
</div><div>#
# This may also be "None", "All", or any combination of "Indexes",
# "Includes", "FollowSymLinks", "ExecCGI", or "MultiViews".
#
# Note that "MultiViews" must be named *explicitly* --- "Options All"
# doesn't give it to you.
#
# ¾Æ·¡¿¡¼­ ExecCGI°¡ ¹Ýµå½Ã Æ÷ÇԵǾî¾ß ÇÕ´Ï´Ù.</div><div># ÀÌ ¼³Á¤Àº ȨÆäÀÌÁö »ó¿¡¼­ CGI ÇÁ·Î±×·¥À» »ç¿ëÇÒ ¼ö ÀÖµµ·Ï ÇÕ´Ï´Ù.
Options Includes FollowSymLinks ExecCGI MultiViews</div><div>
 </div><div>[È®ÀÎ3]</div><div>#
# DirectoryIndex: Name of the file or files to use as a pre-written HTML
# directory index.  Separate multiple entries with spaces.
#
# ¾Æ·¡¿¡¼­ index.cgi°¡ ¹Ýµå½Ã Æ÷ÇԵǾî¾ß ÇÕ´Ï´Ù.</div><div># ÀÌ°ÍÀº ȨÆäÀÌÁö ÁÖ¼Ò¸¦ ÀÔ·ÂÇßÀ» ¶§ ÀÚµ¿À¸·Î index.cgi ÆÄÀÏÀ» ºÒ·¯¿Àµµ·Ï ÇÕ´Ï´Ù.</div><div># È¨ÆäÀÌÁö¿¡¼­ index.cgi ÆÄÀÏÀ» Á¦ÀÏ ¸ÕÀú ºÒ·¯¿Àµµ·Ï ÇÏ·Á¸é ¾Æ·¡¿Í °°ÀÌ index.cgi ÆÄÀÏÀ» Á¦ÀÏ ¾Õ¿¡ µÎ½Ã¸é µË´Ï´Ù.</div><div>DirectoryIndex index.cgi index.html index.htm</div>
<div>[È®ÀÎ4]</div><div>#
# AddHandler allows you to map certain file extensions to "handlers",
# actions unrelated to filetype. These can be either built into the server
# or added with the Action command (see below)
#
# If you want to use server side includes, or CGI outside
# ScriptAliased directories, uncomment the following lines.
#
# To use CGI scripts:
#
# ¾Æ·¡ ÁÙ¿¡¼­ ÁÖ¼®(#) 󸮸¦ »èÁ¦ÇØ ÁÖ¼¼¿ä.</div><div># ÀÌ ¼³Á¤Àº ȨÆäÀÌÁö »ó¿¡¼­ CGI ÇÁ·Î±×·¥À» »ç¿ëÇÒ ¼ö ÀÖµµ·Ï ÇÕ´Ï´Ù.
AddHandler cgi-script .cgi</div><div></div><div>***************************************************************************</div><div></div><div>ÀÌ»ó°ú °°ÀÌ ¼³Á¤ÇϽøé ȨÆäÀÌÁö¿¡¼­ Åõ°Ô´õ ȨÆäÀÌÁöºô´õ¸¦ »ç¿ëÇϴµ¥ ÇÊ¿äÇÑ È¯°æ¼³Á¤Àº ¸¶Ä¡°Ô µË´Ï´Ù. Åõ°Ô´õ¿¡¼­ »ç¿ëÇÏ´Â ÇÁ·Î±×·¥Àº È®ÀåÀÚ°¡ ¸ðµÎ .cgi Çü½ÄÀ¸·Î µÇ¾î Àֱ⠶§¹®¿¡ CGI °ü·Ã °ü°æ¼³Á¤À» ÇØ µÎ¾î¾ß¸¸ Á¤»óÀûÀ¸·Î »ç¿ëÇÒ ¼ö ÀÖ½À´Ï´Ù.</div><div>ÇÑ ¿¹·Î, ¿äÁò ¸¹ÀÌ »ç¿ëÇÏ°í ÀÖ´Â PHP ÇÁ·Î±×·¥µµ ÀÌó·³ ȯ°æ¼³Á¤À» ÇØ µÎ¾ú±â ¶§¹®¿¡ ¿©·¯ºÐÀÇ ¼­¹ö °èÁ¤¿¡¼­ ºÒÆí¾øÀÌ »ç¿ëÇÒ ¼ö ÀÖ´Â °ÍÀÔ´Ï´Ù. ÇÏÁö¸¸ CGI ¹æ½ÄÀº ¸¹ÀÌ »ç¿ëÇÏÁö ¾Ê´Â °ü°è·Î ¼­¹ö °ü¸®ÀÚ°¡ ȯ°æ¼³Á¤À» ÇØ µÎÁö ¾Ê´Â °æÇâÀÌ ¸¹Àºµ¥, PHP¿¡ ¾Õ¼­¼­ ÀÌÀü¿¡´Â ¸®´ª½º¿¡¼­´Â ÀϹÝÀûÀ¸·Î C ¶Ç´Â Perl ÇÁ·Î±×·¡¹ÖÀ» ¸¹ÀÌ »ç¿ëÇØ ¿Ô±â ¶§¹®¿¡ CGI ¹æ½ÄÀ» ¸¹ÀÌ »ç¿ëÇß½À´Ï´Ù.</div><div></div><div>ÀÌ ºÎºÐÀº ¼­¹ö°ü¸®ÀÚ°¡ ¾ÆÆÄÄ¡ À¥¼­¹ö ȯ°æ¼³Á¤ÆÄÀÏÀ» ¼öÁ¤ÇØ¾ß ÇÏ´Â ºÎºÐÀ̹ǷΠÂü°íÇϽñ⠹ٶø´Ï´Ù.</div><div></div><div>°¨»çÇÕ´Ï´Ù.</div></div>
writer ip : 222.101.187.100    


59.17.161.87
2008/02/26 (11:25:48)
À§¿Í°°Àº CGI ¼³Á¤Àº ÀÌ¹Ì ¼­¹ö¼³Á¤¿¡ Àû¿ëµÈ »óÅÂÀÔ´Ï´Ù.
ÇØ´ç CGI¸¦ ·ÎÄÿ¡¼­ È®Àΰá°ú Á¤»óÀûÀ¸·Î ÀÛµ¿ÇÏ¿´½À´Ï´Ù.

# ./index.cgi
Content-Type: text/html<script language='javascript'>
window.location.href = 'together/'; 
</script>

µû¶ó¼­ ÇÁ·Î±×·¥ ³»ºÎ¹®Á¦³ª ¹öÁ¯»óÀÇ ¹®Á¦·Î ÆǴܵ˴ϴÙ.
MySQL ¹öÁ¯À̳ª ±âº»¼³Ä¡È¯°æÀ» ÇÁ·Î±×·¥ Á¦Àۻ翡 ¹®ÀÇÇØ º¸½Ã±â ¹Ù¶ø´Ï´Ù.

Æó»çÀÇ MySQL ¹öÁ¯Àº 5.0.41 ÀÔ´Ï´Ù.
°¨»çÇÕ´Ï´Ù.



      

       

3415 2´Ü°è krµµ¸ÞÀÎ ¹®ÀÇ [1] leo 06/20 5244
1578 2½Ã 32ºÐ ftpÁ¢¼ÓÀÌ ¾È됍´Ï´Ù;;; [1] h@n 11/22 2
2286 2½Ã±îÁö¶ó´õ´Ï.. [1] Àº¼³ 08/30 2343
1891 2¿ù ¸»¿¡ ÀÔ±ÝÀ» ÇÏ°í.. [1] ¿ì³² 03/11 2226
5129 2Áß °áÁ¦ °ü·Ã ¹®ÀÇ [1] testory 11/11 0
4697 2Â÷ µµ¸ÞÀÎ °ü·Ã Áú¹®.. [1] µ¢½Ç 12/23 4734
4148 2Â÷ µµ¸ÞÀÎ »ç¿ë°¡´É¼º ¿©ºÎ ¹®ÀÇ [1] digibit 02/21 0
4355 2Â÷ µµ¸ÞÀÎ ¿¬°á [1] ´àÀº 10/15 0
499 2Â÷ µµ¸ÞÀÎÀ¸·Î Á¢¼ÓÀÌ ¾ÈµÇ¿©~ [1] ´«¹°^^¤ð 02/08 4
3673 2Â÷ ¹®ÀÇ .htaccess »èÁ¦ ½ÃÄ¿ ÁÖ¼¼¿ä.. [1] ºÎµ¿»ê 12/09 6459
4693 2Â÷µµ¸ÞÀÎÀ» ¾î¶»°Ô ¸¸µé¼ö ÀÖ³ª¿ä? [1] µ¢½Ç 12/16 0
794 355 ¹øÁú¹® Ãß°¡Áú¹®... [1] Á¦ÁÖµµÆæ¼Ç 04/05 2912
774 355¹ø ÀçÁú¹® ÀÔ´Ï´Ù.(Á˼Û) [1] Á¦ÁÖµµÆæ¼Ç 04/01 2463
803 371¹ø Áú¹® Á¤¸» ´ë´ÜÈ÷ Á˼ÛÇÕ´Ï´Ù. [1] Á¦ÁÖµµÆæ¼Ç 04/06 2827
847 395Áú¹® [1] Á¦ÁÖµµÆæ¼Ç 04/20 2388
FIRST123456714LAST