Ä¿ÇǴнº, ½Ã½ºÅÛ ¿£Áö´Ï¾îÀÇ ½°ÅÍ Ä¿ÇÇÇâÀÌ ³ª´Â *NIX
Ä¿ÇǴнº
½Ã½ºÅÛ/³×Æ®¿÷/º¸¾ÈÀ» ´Ù·ç´Â °÷
* HanIRCÀÇ #coffeenix ¹æ
[ Àåºñ ¹× ȸ¼± ÈÄ¿ø ]
HOME > ³×Æ®¿öÅ©(network) > À¥ ¼­¹ö(web, httpd, apache) µµ¿ò¸»
°Ë»ö : »çÀÌÆ® WHOIS À¥¼­¹ö Á¾·ù

WebDAV (7, ±Û 1, ÀÚ·á 4)
À¥¼­¹ö Æ©´× (5, ±Û 4, ÀÚ·á 2)
À¥¼­¹ö »ç¿ë Åë°è ÀÚ·á (2, ÀÚ·á 1)
Apache SSL / mod_ssl (4, ±Û 3, ÀÚ·á 2)

  apache 1.3°ú 2.x¿¡¼­ phpÀÇ SERVER_NAMEº¯¼ö ÀÛ¼ºÀÏ : 2008/06/09 19:26
 
  • ±Û¾´ÀÌ : ÁÁÀºÁøÈ£ ( http://coffeenix.net/ )
  • Á¶È¸¼ö : 9673
          [ ÀÌÀüÈ­¸é / ¼öÁ¤ ]   ºñ¹Ð¹øÈ£ :     Àμâ¿ë È­¸é
      Á¦  ¸ñ : apache 1.3°ú 2.x¿¡¼­ phpÀÇ SERVER_NAMEº¯¼ö
    ÀÛ¼ºÀÚ : ÁÁÀºÁøÈ£(truefeel)
    ÀÛ¼ºÀÏ : 2008.6.5(¸ñ)

    ¾ÆÆÄÄ¡ À¥¼­¹ö¿¡´Â UseCanonicalName À̶ó´Â ¿É¼ÇÀÌ ÀÖ´Ù. ÀÌ ¿É¼ÇÀº CGI³ª phpµî¿¡ SERVER_NAME°ú SERVER_PORTº¯¼ö°ªÀ» ³Ñ±æ ¶§, ¾î¶²°ªÀ» ³Ñ±æ °ÍÀÎÁö °áÁ¤ÇÑ´Ù. OnÀ¸·Î ¼³Á¤µÇ¾î ÀÖÀ» °æ¿ì´Â ¾ÆÆÄÄ¡ÀÇ ServerNameÀ¸·Î ÁöÁ¤ÇÑ °ªÀÌ ³Ñ°ÜÁö°í, Off·Î ¼³Á¤µÇ¾î ÀÖÀ» °æ¿ì´Â Ŭ¶óÀÌ¾ðÆ®°¡ ¿äûÇÑ È£½ºÆ®¸í°ú Æ÷Æ®¸íÀÌ ³Ñ°ÜÁø´Ù.

    ÀÌ·± °æ¿ì¸¦ °¡Á¤Çغ¸ÀÚ. www.coffeenix.net ·Î ¼­ºñ½ºµÇ´Â ¼­¹ö°¡ 5´ë¶ó°í Çϰí, °¢ 5´ëÀÇ ¼­¹ö´Â w101~w105.coffeenix.net À̸§À» °®°í ÀÖ´Ù.

     
    ServerName www.coffeenix.net
     


    À§Ã³·³ ¼³Á¤µÇ¾î ÀÖÀ» ¶§ On°ú OffÀÇ Â÷À̸¦ È®ÀÎȳº¸ÀÚ. À¯Àú°¡ ºê¶ó¿ìÀú¿¡¼­ w101.coff...¸¦ ¿äûÇßÀ» ¶§ÀÌ´Ù.

    ´ÙÀ½Àº OnÀ¸·Î ¼³Á¤ÇÑ °æ¿ìÀ̸ç, ServerName¿¡ ¼³Á¤µÈ È£½ºÆ®¸íÀÌ Ãâ·ÂµÈ´Ù.


    OffÀ¸·Î ¼³Á¤ÇÑ °æ¿ìÀ̸ç, ºê¶ó¿ìÀú¿¡¼­ ¿äûÇÑ È£½ºÆ®¸íÀÌ Ãâ·ÂµÈ´Ù.


    UseCanonicalName ¿É¼ÇÀº ¾ÆÇÇÄ¡ 1.3¿¡¼± ±âº»°ªÀÌ OnÀ¸·Î, 2.x´ë(2.0, 2.2)´Â Off·Î µÇ¾î ÀÖ´Ù. ±âº»°ªÀÇ Â÷À̰¡ ÀÖÀ¸´Ï ¹Ýµå½Ã ServerName¿¡¼­ ÁöÁ¤ÇÑ È£½ºÆ®¸íÀÌ ³ª¿Í¾ßÇÒ °æ¿ì ÁÖÀǰ¡ ÇÊ¿äÇÏ´Ù. ´ÙÀ½Àº ¾ÆÆÄÄ¡ À¥¼­¹öÀÇ httpd.conf ÀϺδÙ.

    [ ¾ÆÆÄÄ¡ 1.3.xÀÇ httpd.conf ]
     
    # UseCanonicalName:  (new for 1.3)  With this setting turned on, whenever
    # Apache needs to construct a self-referencing URL (a URL that refers back
    # to the server the response is coming from) it will use ServerName and
    # Port to form a "canonical" name.  With this setting off, Apache will
    # use the hostname:port that the client supplied, when possible.  This
    # also affects SERVER_NAME and SERVER_PORT in CGI scripts.
    #
    UseCanonicalName On
     



    [ ¾ÆÆÄÄ¡ 2.2.xÀÇ httpd-default.conf ]
     
    # UseCanonicalName: Determines how Apache constructs self-referencing
    # URLs and the SERVER_NAME and SERVER_PORT variables.
    # When set "Off", Apache will use the Hostname and Port supplied
    # by the client.  When set "On", Apache will use the value of the
    # ServerName directive.
    #
    UseCanonicalName Off
     

      Ä¿ÇǴнº Ä«Æä ÃÖ±Ù ±Û
    [06/30] Àü ¼¼&#
    [06/30] ÇöÁö &#
    [06/28] ½ºÅ×&#4
    [06/27] Àü ¼¼&#
    [06/27] ¬¯¬Ö¬Õ¬Ñ¬Ó¬ß¬à ¬ß¬Ñ¬ä¬Ü¬ß¬å¬Ý¬ã¬ñ ¬ß
    [06/16] [Áú¹®]SAN ½ºÀ§Ä¡ ºê·ÎµåÄÉÀ̵å dcx8510-4 Àåºñ°ü·ÃÀÔ´Ï´Ù.
    [06/16] ·Ôµ¥&#4
    [06/14] ·Ôµ¥&#4
    [06/14] ÇØ¿Ü &#
    [06/14] ½Å¼¼&#4
    [06/13] ½ºÅ¸&#4
    [04/22] Re: ¿µÈ­¼Ó¿¡ ÄÄÇ»ÅÍ À̾߱â ~½º¿öµåÇǽ¬(2001)
    [10/20] Cross Compiler ±ò
    [07/14] SSL ¬¡¬°
    [04/26] Re: µµ½ºÈ­¸é ¿ø°ÝÁ¶Á¾ ¿©ºÎ
      New!   ÃÖ±Ù¿¡ µî·ÏÇÑ ÆäÀÌÁö
      KiCad EDA Suite project (Free/Libre/Open-Source EDA Suite) (CAD)
      ¿ÀÇÂij½ºÄÉÀ̵å ijµå (OpenCASCADE CAD)
      QCad for Windows --- GNU GPL (Free Software)
      The Hello World Collection
      IPMI¸¦ Ȱ¿ëÇÑ ¸®´ª½º ¼­¹ö°ü¸®
      DNS ¼³Á¤ °Ë»ç
      nagiosgraph ¼³Ä¡ ¹æ¹ý
      Slony-I ¼³Ä¡ ¹æ¹ý (postgresql replication tool)
      Qmail±â¹ÝÀÇ Anti spam ½Ã½ºÅÛ ±¸ÃàÇϱâ
      clusterssh

    [ ÇÔ²²ÇÏ´Â »çÀÌÆ® ]




    ¿î¿µÁø : ÁÁÀºÁøÈ£(truefeel), ¾ß¼ö(yasu), ¹ü³ÃÀÌ, sCag
    2003³â 8¿ù 4ÀÏ~