{"id":149838,"date":"2020-09-02T11:29:59","date_gmt":"2020-09-02T03:29:59","guid":{"rendered":"http:\/\/4563.org\/?p=149838"},"modified":"2020-09-06T00:25:59","modified_gmt":"2020-09-05T16:25:59","slug":"%e6%88%91%e6%90%ad%e5%bb%ba%e7%9a%84-laravel-%e4%b8%8d%e8%83%bd%e8%b7%af%e7%94%b1%e6%98%af%e6%80%8e%e4%b9%88%e5%9b%9e%e4%ba%8b%ef%bc%8c%e6%96%b0%e6%90%ad%e5%bb%ba%e4%ba%86%e4%b8%80%e4%b8%aa-laravel","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=149838","title":{"rendered":"\u6211\u642d\u5efa\u7684 laravel \u4e0d\u80fd\u8def\u7531\u662f\u600e\u4e48\u56de\u4e8b\uff0c\u65b0\u642d\u5efa\u4e86\u4e00\u4e2a laravel \u6846\u67b6\u7f51\u7ad9\uff0c\u53ea\u6709\/index. PHP \/routes \u624d\u6709\u7528\uff0c\u76f4\u63a5\u8bbf\u95ee\u6ca1\u7528"},"content":{"rendered":"<div>\n<div>\n<div>\n<h1>                  \u6211\u642d\u5efa\u7684 laravel \u4e0d\u80fd\u8def\u7531\u662f\u600e\u4e48\u56de\u4e8b\uff0c\u65b0\u642d\u5efa\u4e86\u4e00\u4e2a laravel \u6846\u67b6\u7f51\u7ad9\uff0c\u53ea\u6709\/index. PHP \/routes \u624d\u6709\u7528\uff0c\u76f4\u63a5\u8bbf\u95ee\u6ca1\u7528               <\/h1>\n<p> <\/p>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : proxytoworld <\/span>  <span><i><\/i> 21<\/span> <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<div isfirst=\"1\"> <\/p>\n<p>\u8def\u7531\u4ee3\u7801<\/p>\n<pre><code>Route::get('\/blog\/post\/149838', function ($post_id) {        return $post_id; });  <\/code><\/pre>\n<p>\u8bbf\u95ee site\/index.php\/blog\/post\/1 \u80fd\u51fa\u7ed3\u679c\uff0c\u8bbf\u95ee site\/blog\/post\/1 \u7531 apache \u8fd4\u56de 404<\/p>\n<p>apache \u8bbe\u7f6e 000-default-le-ssl.conf<\/p>\n<pre><code>ServerAdmin [email&#160;protected] DocumentRoot \/var\/www\/blog\/public Servername site <\/code><\/pre>\n<p>\u662f\u6211\u54ea\u91cc\u6ca1\u8bbe\u7f6e\u597d\u5417\uff0c\u6c42\u89e3\u7b54<\/p>\n<\/p><\/div>\n<div> <b>\u5927\u4f6c\u6709\u8a71\u8aaa<\/b> (<span>4<\/span>)        <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<ul>\n<li data-pid=\"3045643\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : ysoserious <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             nginx \u91cc\u8fd8\u8981\u914d\u7f6e\u9ed8\u8ba4\u6587\u4ef6<br \/>index index.php<\/p>\n<p>\u548c\u81ea\u52a8\u89e3\u6790 url \u6ca1\u6709 index.php \u7684\u65f6\u5019\u5c1d\u8bd5\u52a0\u5165 index.php \u89e3\u6790\u7684\u914d\u7f6e<\/p>\n<p>\u4f60\u8fd9 apache \u662f\u4e0d\u662f\u4e5f\u5f97\u8fd9\u4e48\u8bbe\u7f6e?                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3045644\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : imnpc <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             1. laravel \u9700\u8981\u4f2a\u9759\u6001 \u6307\u5411 public \u76ee\u5f55\u4ee5\u540e\u5e94\u8be5\u6709\u7684<br \/>2.\u5b98\u65b9\u63a8\u8350\u6d4b\u8bd5\u4f7f\u7528 Homestead \u8fd9\u4e2a\u786e\u5b9e\u597d\u7528                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3045645\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : also24 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u6839\u636e\u5b98\u65b9\u6587\u6863\uff0c\u68c0\u67e5\u4e00\u4e0b\u4f60\u7684 public\/.htaccess \u6587\u4ef6<\/p>\n<p>https:\/\/laravel.com\/docs\/7.x#pretty-urls                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3045646\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : Encloud <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u5173\u952e\u5b57\uff1aapache pathinfo                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li>\n","protected":false},"excerpt":{"rendered":"<p>\u6211\u642d\u5efa\u7684 laravel \u4e0d\u80fd\u8def\u7531&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[],"tags":[],"_links":{"self":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/149838"}],"collection":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=149838"}],"version-history":[{"count":1,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/149838\/revisions"}],"predecessor-version":[{"id":149839,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/149838\/revisions\/149839"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=149838"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=149838"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=149838"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}