¶ÀÁ¢IPÇáËÉʵÏÖÍêÃÀµÄ·ºÓòÃû½âÎö
Èç¹ûÄãµÄÍøÕ¾ÓÐÒ»¸ö¶ÀÁ¢IP(¼ÙÉèÊÇ123.23.55.10)£¬·þÎñÆ÷ÎÞÐèÈκÎÉèÖã¬Ö»ÒªÔÚÓòÃû¹ÜÀíºÍÍøÕ¾³ÌÐò×öһϠÉèÖá£ÀýÈçÒª¸øwebshu.com×ö·ºÓòÃû½âÎö£¬·½·¨ÊÇ£¬
1¡¢ÔÚÓòÃû¹ÜÀíÃæ°åµÄA¼Ç¼Ôö¼ÓÒ»¸ö*(Ò²¾ÍÊÇ*.webshu.com)£¬ÎÒÊÔÁËһϣ¬¼´Ê± ÉúЧ¡£Èç¹ûA¼Ç¼²»ÄÜÔö¼Ó*µÄ×ÓÓòÃû£¬ÔòÔÚ±ðÃû(CNAME)´¦Ôö¼Ó¡£
2¡¢ÍøÕ¾³ÌÐòÀASPÓà Request.ServerVariables("server_name")»ñµÃµØÖ·À¸µÄÓòÃû£¬PHP ÓÃ$_SERVER['SERVER_NAME']»ñµÃµØÖ·À¸µÄÓòÃû£¬È»ºóASPͨ¹ýreplace()»òÕßmid()ºÍLeft()º¯Êý£¬PHPͨ¹ý str_replace()»òÕßsubstr()»òÕßexplode()À´»ñµÃ¶þ¼¶ÓòÃûµÚÒ»¸ö¡°µã¡±Ç°ÃæµÄÖµ(¼ÙÉèÊÇhhh)¡£ÀýÈç·ÃÎÊ http://namsa.webshu.comʱ£¬hhhµÄÖµÊÇnamsa¡£
ÐèҪעÒâµÄÊÇ£¬ÒòΪ±ðÃû(CNAME)²»ÄÜÖ±½ÓÖ¸ÏòIPµØÖ·£¬¿ÉÒÔÓÃÈκÎÒѾÓеÄÓòÃûÈçwang.auiou.comÀ´½âÎöÕâ¸öIPµØÖ·123.23.55.10£¬È»ºóÌí¼ÓµÄ±ðÃû*¶ÔÓ¦µÄµØÖ·ÊÇwang.auiou.com¡£
ËäÈ»¶¼ÊǽâÎöµ½Í¬Ò»¸ö·þÎñÆ÷£¬µ«ÊÇÒòΪ¶þ¼¶ÓòÃû²»Í¬£¬¶þ¼¶ÓòÃûÏ൱ÓÚÍøÕ¾µÄget²éѯ²ÎÊýµÄÖµ£¬Ò²¾ÍÊÇÇ°ÃæÌáµ½µÄhhh¡£Õâ¸öÖµÏ൱ÖØÒª£¬¼ÙÉèÕâ¸öÖµÊÇ auiou£¬ÎÒ¿ÉÒÔÔÚ123.23.55.10µÄ·þÎñÆ÷ÉϽ¨Á¢»òÕßÈóÌÐò×Ô¶¯½¨Á¢Ò»¸öĿ¼ck/auiou£¬ÔÚÿ¸öÍøÒ³µÄincludeÎļþ½¨Á¢Ò»¸ö±ä Á¿£¬ÈÃËüµÄÖµÊÇck/auiou(ASP³ÌÐòÈç"ck/"&hhh£¬PHP³ÌÐòÈç"ck/".$hhh)£¬Ê¹ck/auiouÕâ¸öĿ¼±ä³Éµ±Ç°·º ÓòÃûµÄ¸ùĿ¼£¬Ã¿¸ö·ºÓòÃûµÄ¸ùĿ¼Ïà¶Ô·¾¶¶¼ÓÃÕâÖÖ·½·¨¡£·ÃÎÊhttp://namsa.webshu.com¾Í¿ÉÒÔÖ±½Ó·ÃÎÊnamsaÕʺŵÄÊ×Ò³£¬·ÃÎÊ http://auiou.webshu.com¾Í¿ÉÒÔÖ±½Ó·ÃÎÊauiouÕʺŵÄÊ×Ò³£¬µÈµÈ£¬ÎÞÈκÎÌøת¶¨Ïò¡£ÖÁ´Ë£¬ÇáËɵØʵÏÖÁËÍêÃÀµÄ·ºÓòÃû½âÎö£¬ÍøÕ¾ ·þÎñÆ÷ÎÞÐèÈκÎÉèÖúÍÅäÖá£
ÔÚ±¾µØ²âÊÔµÄʱºò£¬¿ÉÒÔÏÈ°Ñwang.auiou.com½âÎöµ½127.0.0.1µÄ±¾µØIPµØÖ·¡£
ÓÃͬÑùµÄ·½·¨£¬ÍøÕ¾¿ÉÒÔ°ó¶¨ÎÞÊý¸ö¶¥¼¶ÓòÃû»òÕß×ÓÓòÃû£¬Õâ²»ÊÇÌøת»òÕß¿ò¼ÜǶÈ룬¶øÊÇÕæÕýµØ¡°°ó¶¨¡±£¬Ö»ÒªÍøÕ¾ÓжÀÁ¢IP¡£Í¬Ñù£¬ÍøÕ¾·þÎñÆ÷ÎÞÐèÈκÎÉèÖúÍÅäÖá£
ÍƼöÐÅÏ¢
- ¹¹½¨¸ß¿ÉÓú͵¯ÐÔÉìËõµÄKV´æ´¢ÏµÍ³
- ̸̸ÍøÕ¾¾²Ì¬»¯£¨¶þ£©
- ̸̸ÍøÕ¾¾²Ì¬»¯£¨Ò»£©
- Ðì¹úÏ飺΢²©ÊÇ·ñ»á²ÎÓëÍøÕ¾ÅÅÃû
- ApacheÔÚ±¾µØ½¨Á¢·ºÓòÃûÐéÄâÖ÷»ú¼ò·¨
- ÈçºÎ½øÐÐÍøÕ¾Õï¶Ï ΪÍøÕ¾½øÐÐÆÀ·Ö
- Ò»¸ö³É¹¦µÄÕ¾³¤Ó¦¸Ã¾ß±¸µÄËØÖÊ
- Ò»Ìõ΢²©Òý·¢µÄ·ÖÎö£ºÈçºÎÈÃ΢²©µÃµ½¹ã·º´«²¥
- ÈçºÎÈÃÒ»¸öÍøÕ¾ÓÐÇ¿´óÉúÃüÁ¦
- פ×ãIDCÃż÷³Ö±Ò¹ÛÍû Õ¾³¤Ñ¡¹º¿Õ¼ä³É¡°¼èÄѵľö¶¨¡±£¿
ÈÈÃÅÐÅÏ¢
- nohup: redirecting stderr to stdou....
- ʹÓÃlog_formatΪNginx·þÎñÆ÷ÉèÖøüÏêϸµÄÈÕÖ¾¸ñʽ
- jquery easyUI--dataGrid-Json
- [Ô´´]·ÂGoogle Reader¡¢ÐÂÀË΢²©¡¢ÌÚѶ΢²©µ....
- ÀûÓÃKeepalived+mysql¹¹½¨¸ß¿ÉÓÃMySQLË«Ö÷×Ô¶....
- Nginx+keepalivedʵÏÖ¸ºÔؾùºâºÍË«»úÈȱ¸¸ß¿ÉÓÃ
- jqueryʵÏÖÒ³Ãæ¼ÓÔؽø¶ÈÌõ
- Rolling cURL: PHP²¢·¢×î¼Ñʵ¼ù
- codeigniter ·ÓÉÖÕ¼«ÓÅ»¯(url rewrite)
- linuxÏÂÉèÖÃsshÎÞÃÜÂëµÇ¼
ÆÀÂÛ