´ÙÀ½ ÀÌÀü Â÷·Ê

3. HTTPd Å×½ºÆ®

HTTPd¸¦ ¼³Ä¡ÇÑ ÈÄ ·çÆ®·Î ·Î±×ÀÎÇÏ°í 'httpd &'¸¦ ÀÔ·ÂÇÏ¿© ±¸µ¿Ç϶ó. (´Üµ¶(standalone)À¸·Î ¼³Ä¡µÇ¾ú´Ù°í °¡Á¤ÇÔ) ÀÌÁ¦ psÀ» ÅëÇÏ¿© ³ªÅ¸³­ ¸ñ·ÏÀ» º¼ ¼ö ÀÖÀ» °ÍÀÌ´Ù. °¡Àå ´Ü¼øÇÑ Å×½ºÆ® ¹æ¹ýÀº Telnet¿¡ ÀÇÇؼ­´Ù. ¸®´ª½º ¸í·É ÇÁ·ÒÇÁÆ®¿¡¼­ ´ÙÀ½°ú °°ÀÌ ÀÔ·ÂÇ϶ó.

        linux:~$  telnet 172.16.0.1 80
80Àº HTTPÀÇ ±âº» Æ÷Æ®ÀÌ´Ù. ¾î¶² ´Ù¸¥ Æ÷Æ®·Î ȯ°æ ±¸¼ºÀ» Çß´Ù¸é 80´ë½Å¿¡ ÇØ´çÇÏ´Â °ªÀ» ÀÔ·ÂÇ϶ó. ±×·¯¸é ´ÙÀ½°ú °°Àº ÀÀ´äÀ» ¾òÀ» °ÍÀÌ´Ù.
        Trying 172.16.0.1...
          Connected to linux.mydomain.
          Escape character is '^]'.
ÀÌÁ¦ ¾î¶² ¹®ÀÚ¿Í EnterÅ°¸¦ ´©¸£¸é ´ÙÀ½¿¡ º¸¿©Áö´Â °Í°ú ºñ½ÁÇÑ ÀÀ´äÀ» ¾òÀ» °ÍÀÌ´Ù.
   HTTP/1.0 400 Bad Request
     Date: Wed, 10 Jan 1996 10:24:37 GMT
     Server: NCSA/1.5
     Content-type: text/html
   <HEAD><TITLE>400 Bad Request < /TITLE> < /HEAD>
     <BODY><H1>400 Bad Request < /H1>
     Your client sent a query that this server could
     not understand.<P>
     Reason: Invalid or unsupported method.<P>
     < /BODY>
ÀÌÁ¦ ¼­¹ö¿¡ ´Ù¸¥ PC¿Í À¥ºê¶ó¿ìÀú¸¦ »ç¿ëÇÏ¿© Á¢¼ÓÇÒ Áغñ°¡ µÇ¾ú´Ù.
´ÙÀ½ ÀÌÀü Â÷·Ê