ÄÄ°¡À̹ö      2008/02/26 (09:48:41)     5371   
   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 ÀÔ´Ï´Ù.
°¨»çÇÕ´Ï´Ù.



      

       

4687 Á¦·Îº¸µå XE ¼³Ä¡ ¿äû [4] ¸ð¸£°Ç 12/13 0
4686 CMGÀÔ´Ï´Ù.ÀúÈñ °í°´ UTF-8 ȯ°æ ¼³Á¤ ¿äûÇÕ´Ï´Ù... [1] CMG 12/10 0
4685 ÀÔ±ÝÀÚ [1] Çϳª 12/08 0
4684 µµ¸ÞÀο¬°á [1] 12/08 0
4683 5°³¿ùÀü¿¡ ±â°£¸¸·áµÈ »çÀÌÆ® ´Ù½Ã »ì¸±¼ö ÀÕ³ª¿ä... [1] ³²¿ø½ºÅæ 12/07 5062
4682 FTP »óÅ°¡ ÁÁÁö ¾Ê½À´Ï´Ù. [1] ½ºÄ«¾ß¸¶ 12/06 4400
4681 ¹®Àǵå·Á¿ä. [1] cici 12/03 0
4680 ¼­ºñ½ºº¯°æ ȯºÒ°ÇÀÔ´Ï´Ù. [1] well 12/02 0
4679 ¼ÂÆÃÁ» »¡¸® ÇØÁÖ¼¼¿ä. [1] ±¸¾îÁ¶Àº´ß 11/30 0
4678 µµ¸ÞÀÎ ¿¬Àå °ü·ÃÇؼ­ È®ÀÎ ºÎŹµå¸³´Ï´Ù [1] ¿ä¼ö¾Æ 11/26 0
4677 db¹é¾÷ ¾î¶»°Ô ÇØ¿ä.. [1] Â÷ÀξÖÇà 11/26 4503
4676 Áú¹®ÀÌ ÀÖ½À´Ï´Ù. [1] yaki 11/22 0
4675 ±Ý¿äÀÏ °áÁ¦ Çߴµ¥ ¼¼ÆÃÀÌ ¾ÈµÇ¾î Àֳ׿ä! [1] heraclas 11/22 4447
4674 Ȥ½Ã ±â°£ Áö³­ °èÁ¤ »ì¸±¼ö ÀÖ³ª¿ä? [1] CMG 11/20 0
4673 °ñµåÇüÀε¥µµ ¿ÀǸ¶ÄÏ¿¡¼­´Â »ç¿ëÇϱâ Èûµç ¼­ºñ... [1] ¹Ð·ÎÀ¯¶¼ 11/13 4151
FIRST394647484950515259LAST