nginx 302¹ýʧÔõô½â¾ö
nginx 302 ¹ýʧÌåÏÖ×ÊÔ´ÒÑÔÝʱÒƶ¯¡£Ôµ¹ÊÔÓÉ¿ÉÄÜ°üÀ¨£ºÖض¨ÏòÉèÖò»µ±¡¢Ñ»·Öض¨Ïò¡¢»º´æÎÊÌâ»òµÚÈý·½²å¼þ¡£½â¾ö°ì·¨°üÀ¨£º¼ì²éÉèÖᢲâÊÔÖض¨Ïò¡¢É¨³ý»º´æ¡¢½ûÓòå¼þºÍ×·Çóרҵ×ÊÖú¡£
ÔõÑù½â¾ö Nginx 302 ¹ýʧ
Nginx 302 ¹ýʧÌåÏÖ “ÒÑÕÒµ½”£¬ÕâÒâζ×ÅЧÀÍÆ÷ÕÒµ½ÁËÇëÇóµÄ×ÊÔ´£¬µ«¸Ã×ÊÔ´ÒÑÔÝʱÒƶ¯µ½ÁíÒ»¸öλÖá£Õâ¿ÉÄÜÊÇÓÉÓÚÒÔÏÂÔµ¹ÊÔÓÉÒýÆðµÄ£º
Ôµ¹ÊÔÓÉ 1£ºÖض¨ÏòÉèÖò»µ±
¼ì²éÄúµÄ Nginx ÉèÖÃÎļþÖеÄÖض¨Ïò¹æÔò¡£
È·ÕäÖض¨ÏòÖ¸Áî׼ȷÇÒÖ¸Ïò׼ȷµÄÄ¿µÄ URL¡£
Ôµ¹ÊÔÓÉ 2£ºÑ»·Öض¨Ïò
ЧÀÍÆ÷¿ÉÄܻᱻÉèÖÃΪһֱÖض¨Ïòµ½×ÔÉí¡£
¼ì²éÄúµÄÉèÖÃÊÇ·ñÓÐÑ»·Öض¨Ïò¡£
Ôµ¹ÊÔÓÉ 3£ºä¯ÀÀÆ÷»º´æ
ä¯ÀÀÆ÷¿ÉÄÜ»º´æÁ˾ɵÄÖض¨ÏòÏìÓ¦¡£
ɨ³ýä¯ÀÀÆ÷µÄ»º´æ²¢ÖØмÓÔØÒ³Ãæ¡£
Ôµ¹ÊÔÓÉ 4£ºµÚÈý·½²å¼þ»òÄ£¿é
ijЩµÚÈý·½ Nginx ²å¼þ»òÄ£¿é¿ÉÄܻᵼÖÂÖض¨Ïò¹ýʧ¡£
½ûÓûòжÔØÈκÎ×î½ü×°ÖõIJå¼þ»òÄ£¿é¡£
½â¾ö°ì·¨£º
¼ì²éÉèÖãº×Ðϸ¼ì²é Nginx ÉèÖÃÎļþÖеÄÖض¨ÏòÖ¸ÁîÊÇ·ñ±£´æ¹ýʧ»òÊè©¡£
²âÊÔÖض¨Ïò£ºÊ¹Óà curl »ò wget Ö®ÀàµÄÏÂÁîÐй¤¾ßÊÖ¶¯²âÊÔÖض¨Ïò£¬ÒÔÑéÖ¤ËüÃÇÊÇ·ñ°´Ô¤ÆÚÊÂÇé¡£
ɨ³ý»º´æ£ºÔÚä¯ÀÀÆ÷ÖÐɨ³ý»º´æºÍ cookie£¬ÒÔÈ·±£Ê¹ÓÃ×îеÄÏìÓ¦¡£
½ûÓòå¼þ£ºÔÝʱ½ûÓÃÈκÎ×î½ü×°ÖÃµÄ Nginx ²å¼þ»òÄ£¿é£¬ÒÔÈ·¶¨ËüÃÇÊÇ·ñÊǵ¼ÖÂÎÊÌâµÄȪԴ¡£
×·Çóרҵ×ÊÖú£ºÈôÊÇÄúÎÞ·¨×ÔÐнâ¾ö 302 ¹ýʧ£¬Çë˼Á¿ÏòϵͳÖÎÀíÔ±»ò Nginx Ö§³ÖÂÛ̳׷Çó×ÊÖú¡£
ÒÔÉϾÍÊÇnginx 302¹ýʧÔõô½â¾öµÄÏêϸÄÚÈÝ£¬¸ü¶àÇë¹Ø×¢±¾ÍøÄÚÆäËüÏà¹ØÎÄÕ£¡