×ðÁú¿­Ê±¹ÙÍøµÇ¼

laravelÍøÕ¾Ôõô°ó¶¨ÓòÃû

laravelÊÇÒ»ÖÖ¿ªÔ´php¿ò¼Ü £¬ÓÃÓÚ±àдwebÓ¦ÓóÌÐò¡£ÈôÊÇÄúÕýÔÚʹÓÃlaravel½¨ÉèwebÓ¦ÓóÌÐò £¬²¢Ï£Íû½«Æä°ó¶¨µ½Ìض¨µÄÓòÃûÉÏ £¬ÄÇôÄúÐèÒª¾ÙÐÐһЩÉèÖá£ÔÚ±¾ÎÄÖÐ £¬ÎÒÃǽ«ÏÈÈÝÔõÑùÔÚlaravelÍøÕ¾Öаó¶¨ÓòÃû¡£

µÚÒ»²½£º¹ºÖÃÓòÃûºÍÍйÜЧÀÍ

ÔÚ°ó¶¨ÓòÃû֮ǰ £¬ÄúÐèÒª¹ºÖÃÒ»¸öÓòÃûºÍÒ»¸öÍйÜЧÀÍ¡£ÓòÃûÊÇÄúµÄÍøÕ¾µÄΨһ±êʶ·û £¬¶øÍйÜЧÀÍÊÇÄú´æ´¢WebÓ¦ÓóÌÐòÎļþµÄµØ·½¡£Ñ¡ÔñÒ»¸öºÃµÄÓòÃûºÍÍйÜЧÀÍÊǺÜÊÇÖ÷ÒªµÄ £¬ÓÉÓÚËüÃǽ«Ö±½ÓÓ°ÏìÄúµÄÍøÕ¾ÐÔÄܺͿɿ¿ÐÔ¡£

µÚ¶þ²½£ºÉèÖÃÍйÜЧÀÍ

ÔÚ¹ºÖÃÍйÜЧÀÍÖ®ºó £¬ÄúÐèÒª½«LaravelÓ¦ÓóÌÐòÎļþÉÏ´«µ½ÍйÜЧÀÍÉÏ¡£Äú¿ÉÒÔʹÓÃFTP¿Í»§¶ËÀ´ÉÏ´«Ó¦ÓóÌÐòÎļþ¡£ÇëÈ·±£½«ËùÓеÄÎļþÉÏ´«µ½×¼È·µÄÎļþ¼ÐÖС£ÄúÓ¦¸ÃÄܹ»»á¼ûµ½publicÎļþ¼Ð¡£

µÚÈý²½£ºÐÞ¸ÄÇéÐαäÁ¿Îļþ

ÏÖÔÚÎÒÃÇÐèÒªÐÞ¸ÄÇéÐαäÁ¿Îļþ £¬ÒÔ±ãLaravelÓ¦ÓóÌÐòÖªµÀËüÓ¦¸ÃʹÓÃÄĸöÓòÃû¡£ÔÚÄúµÄÓ¦ÓóÌÐò¸ùĿ¼Ï £¬ÓÐÒ»¸öÃûΪ.envµÄÎļþ £¬·­¿ªËü²¢ÕÒµ½APP_URLÑ¡Ïî¡£½«ÆäÉèÖÃΪÄúµÄÓòÃû £¬ºÃ±È£º

APP_URL=http://example.com

ÇëÈ·±£½«ÓòÃûÌ滻ΪÄú×Ô¼ºµÄÓòÃû¡£

µÚËIJ½£ºÉèÖÃWebЧÀÍÆ÷

½ÓÏÂÀ´ £¬ÎÒÃÇÐèÒªÉèÖÃWebЧÀÍÆ÷ÒÔ½«»á¼ûÄúµÄÓòÃûµÄÇëÇó·Óɵ½LaravelÓ¦ÓóÌÐò¡£ÕâÐèÒª½«Ò»Ð©´úÂëÌí¼Óµ½WebЧÀÍÆ÷ÉèÖÃÎļþÖС£ÒÔÏÂÊÇһЩʾÀý´úÂ룺

Apache( .htaccessÎļþ)£º

ÈôÊÇÄúʹÓõÄÊÇApacheЧÀÍÆ÷ £¬ÄúÐèÒªÔÚpublicÎļþ¼ÐϽ¨ÉèÒ»¸öÃûΪ.htaccessµÄÎļþ £¬²¢½«ÒÔÏ´úÂë²åÈëÆäÖУº

RewriteEngine On
RewriteRule ^(.*)$ public/$1 [L]

µÇ¼ºó¸´ÖÆ

Nginx£º

ÈôÊÇÄúʹÓõÄÊÇNginxЧÀÍÆ÷ £¬ÄúÐèÒª±à¼­NginxÉèÖÃÎļþ £¬²¢½«ÒÔÏ´úÂëÌí¼Óµ½server¿éÖУº

location / {

try_files $uri $uri/ /index.php?$query_string;

µÇ¼ºó¸´ÖÆ

}

µ±ÄúÍê³ÉÕâЩ°ì·¨ºó £¬ÄúµÄLaravelÓ¦ÓóÌÐò½«°ó¶¨µ½ÄúµÄÓòÃûÖС£

½áÂÛ

°ó¶¨ÓòÃûÊǽ«LaravelÓ¦ÓóÌÐò°²Åŵ½»¥ÁªÍøÉϵÄÖ÷Òª°ì·¨¡£ÔÚ±¾ÎÄÖÐ £¬ÎÒÃÇÑÝʾÁËÔõÑù½«LaravelÓ¦ÓóÌÐò°ó¶¨µ½Ìض¨µÄÓòÃûÉÏ¡£ÈôÊÇÄúƾ֤ÎÒÃǵÄÖ¸µ¼¾ÙÐвÙ×÷ £¬ÄúµÄÍøÕ¾½«Äܹ»ÔÚÓòÃûÉÏÔËÐС£

ÒÔÉϾÍÊÇlaravelÍøÕ¾Ôõô°ó¶¨ÓòÃûµÄÏêϸÄÚÈÝ £¬¸ü¶àÇë¹Ø×¢±¾ÍøÄÚÆäËüÏà¹ØÎÄÕ£¡

ÃâÔð˵Ã÷£ºÒÔÉÏչʾÄÚÈÝȪԴÓÚÏàÖúýÌå¡¢ÆóÒµ»ú¹¹¡¢ÍøÓÑÌṩ»òÍøÂçÍøÂçÕûÀí £¬°æȨÕùÒéÓë±¾Õ¾ÎÞ¹Ø £¬ÎÄÕÂÉæ¼°¿´·¨Óë¿´·¨²»´ú±í×ðÁú¿­Ê±¹ÙÍøµÇ¼ÂËÓÍ»úÍø¹Ù·½Ì¬¶È £¬Çë¶ÁÕß½ö×ö²Î¿¼¡£±¾ÎĽӴýתÔØ £¬×ªÔØÇë˵Ã÷À´ÓÉ¡£ÈôÄúÒÔΪ±¾ÎÄÇÖÕ¼ÁËÄúµÄ°æȨÐÅÏ¢ £¬»òÄú·¢Ã÷¸ÃÄÚÈÝÓÐÈκÎÉæ¼°ÓÐÎ¥¹«µÂ¡¢Ã°·¸Ö´·¨µÈÎ¥·¨ÐÅÏ¢ £¬ÇëÄúÁ¬Ã¦ÁªÏµ×ðÁú¿­Ê±¹ÙÍøµÇ¼ʵʱÐÞÕý»òɾ³ý¡£

Ïà¹ØÐÂÎÅ

ÁªÏµ×ðÁú¿­Ê±¹ÙÍøµÇ¼

18523999891

¿É΢ÐÅÔÚÏß×Éѯ

ÊÂÇéʱ¼ä£ºÖÜÒ»ÖÁÖÜÎå £¬9:30-18:30 £¬½ÚãåÈÕÐÝÏ¢

QR code
ÍøÕ¾µØͼ