Nginx·þÎñÆ÷¸ü»»ÓòÃûÖ®301Öض¨ÏòÉèÖÃ
½ñÍí°Ñ×Ô¼ºÒ»¸öÓÎÏ·À¬»øÕ¾µÄÓòÃû¸ü»»ÁËһϣ¬ÕâÀï¼Ç¼һÏÂÔÚnginx»·¾³Ï¸ü»»ÓòÃûºó°Ñ¾ÉÓòÃû301Öض¨Ïòµ½ÐÂÓòÃûµÄ·½·¨£º
1¡¢°ÑÐÂÓòÃû½âÎöµ½·þÎñÆ÷£¬²¢½øÐаó¶¨
server_name www.it300.com it300.com;2¡¢ÔÚÏîÄ¿ÉϰѾÉÓòÃû code.haohailuo.com ¸ü»»ÎªÐÂÓòÃû www.it300.com
3¡¢°Ñ²»´ø www µÄÐÂÓòÃû301Öض¨Ïòµ½´øwwwµÄÐÂÓòÃû
if ($host != 'www.ranling.com'){ rewrite ^/(.*)$ http://www.ranling.com/$1 permanent; }4¡¢°Ñ¾ÉÓòÃû 301Öض¨Ïò µ½ÐÂÓòÃû
server{ server_name code.haohailuo.com; rewrite ^(.*) http://www.ranling.com$1 permanent; }
ÖØÆônginx·þÎñÆ÷£¬¼´¿É¡£
ÍƼöÐÅÏ¢
- linuxÃüÁîѧϰ±Ê¼Ç£¨11£©£ºnlÃüÁî
- linuxÃüÁîѧϰ±Ê¼Ç£¨5£©£ºrmÃüÁî
- linuxÃüÁîѧϰ±Ê¼Ç£¨4£©£ºmkdirÃüÁî
- linuxÃüÁîѧϰ±Ê¼Ç£¨1£©£ºlsÃüÁî
- ½«CentosµÄyumÔ´¸ü»»Îª¹úÄڵİ¢ÀïÔÆÔ´
- ʹÓÃNginxÌí¼Óheader·ÀÖ¹ÍøÒ³±»frame
- linuxϼÓËÙscp´«Êä´óÎļþµÄËÙ¶È
- linuxϵͳÉ϶ÔnginxÈÕÖ¾·Ö¸î´¦Àí
- lnmp/nginxϵͳÕæÕýÓÐЧµÄͼƬ·ÀµÁÁ´ÍêÕûÉèÖÃÏê½â
- Í»ÆÆÊ®Íò²¢·¢µÄNginxµÄÅäÖü°ÓÅ»¯
ÈÈÃÅÐÅÏ¢
- 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ÎÞÃÜÂëµÇ¼
×î½ü¸üÐÂ
- ²éÕÒ²¢É¾³ý.svnĿ¼Îļþ
- redis ÆßÖÖÊý¾ÝÀàÐ͵ÄʹÓó¡¾°
- linux ÏÂÎļþ¸´ÖƵ½windowsÏÂÂÒÂëµÄ½â¾ö°ì·¨
- nginx³öÏÖ502 upstream sent too big he....
- linuxÏÂsudoÅäÖÃÏê½â
- linuxÃüÁîѧϰ±Ê¼Ç£¨15£©£ºtailÃüÁî
- linuxÃüÁîѧϰ±Ê¼Ç£¨14£©£ºheadÃüÁî
- linuxÃüÁîѧϰ±Ê¼Ç£¨13£©£ºlessÃüÁî
- linuxÃüÁîѧϰ±Ê¼Ç£¨12£©£ºmoreÃüÁî
- ¼ÓÃÜËã·¨±È½Ï3DES AES RSA ECC MD5 SHA1µÈ
ÆÀÂÛ