{"id":390,"date":"2018-08-11T11:27:00","date_gmt":"2018-08-11T03:27:00","guid":{"rendered":"http:\/\/blog.yyhcw.com\/?p=390"},"modified":"2018-08-11T11:27:00","modified_gmt":"2018-08-11T03:27:00","slug":"%e5%ae%9d%e5%a1%94linuxnginxedusoho%e6%90%ad%e5%bb%ba%e9%81%87%e8%a7%81%e7%9a%84%e5%9d%91","status":"publish","type":"post","link":"http:\/\/blog.yyhcw.com\/post\/390.html","title":{"rendered":"\u5b9d\u5854Linux+nginx+EduSoho\u642d\u5efa\u9047\u89c1\u7684\u5751"},"content":{"rendered":"<!--wp-compress-html--><!--wp-compress-html no compression--><p>\u4eca\u5929\u4e00\u4e2a\u5ba2\u6237\u7528\u7684<a href=\"http:\/\/blog.yyhcw.com\/post\/tag\/%e5%ae%9d%e5%a1%94\" class=\"tag-tooltip\" data-toggle=\"tooltip\" title=\"\u67e5\u770b\u66f4\u591a\u5173\u4e8e \u5b9d\u5854 \u7684\u6587\u7ae0\" target=\"_blank\">\u5b9d\u5854<\/a>Linux+<a href=\"http:\/\/blog.yyhcw.com\/post\/tag\/nginx\" class=\"tag-tooltip\" data-toggle=\"tooltip\" title=\"\u67e5\u770b\u66f4\u591a\u5173\u4e8e nginx \u7684\u6587\u7ae0\" target=\"_blank\">nginx<\/a>+<a href=\"http:\/\/blog.yyhcw.com\/post\/tag\/edusoho\" class=\"tag-tooltip\" data-toggle=\"tooltip\" title=\"\u67e5\u770b\u66f4\u591a\u5173\u4e8e EduSoho \u7684\u6587\u7ae0\" target=\"_blank\">EduSoho<\/a>\u642d\u5efa\u7684\u6559\u80b2\u7cfb\u7edf\uff0c\u65e0\u6cd5\u8f93\u5165\u57df\u540d\u76f4\u63a5\u8fdb\u5165\uff0c\u5fc5\u987b\u8981\u952e\u5165app.php\u624d\u884c\uff0c\u5426\u5219\u5c31\u662f404\u9519\u8bef\uff0c\u8fd9\u90a3\u884c\uff0c\u6253\u7535\u8bdd\u7ed9\u6211\u8ba9\u5e2e\u5fd9\u89e3\u51b3\uff01<\/p>\n<p>\u8fd9\u4e00\u542c\u5f88\u7b80\u5355\u554a\uff0c\u65e0\u5916\u4e4e\u662f\u9996\u9875\u6587\u4ef6\uff08\u9ed8\u8ba4\u9996\u9875\uff09\u95ee\u9898\u5457\uff0c\u4e8e\u662f\u767b\u9646<a href=\"http:\/\/blog.yyhcw.com\/post\/tag\/%e5%ae%9d%e5%a1%94\" class=\"tag-tooltip\" data-toggle=\"tooltip\" title=\"\u67e5\u770b\u66f4\u591a\u5173\u4e8e \u5b9d\u5854 \u7684\u6587\u7ae0\" target=\"_blank\">\u5b9d\u5854<\/a>\u9762\u677f\u589e\u52a0\u9ed8\u8ba4\u9996\u9875\u6587\u4ef6app.php\uff0c\u7f51\u7ad9\u5b89\u7136\u6253\u5f00\uff0c\u6b27\u4e86\uff01\u53ef\u662f\u540e\u6765\u5ba2\u6237\u544a\u77e5\uff0c\u4e0b\u9762\u680f\u76ee\u65e0\u6cd5\u8bbf\u95ee\uff1b\u597d\u5427\uff01\u63a5\u7740\u89e3\u51b3\uff01<img decoding=\"async\" loading=\"lazy\" class=\"size-full wp-image-394 aligncenter\" src=\"http:\/\/blog.yyhcw.com\/wp-content\/uploads\/2018\/08\/11\/blog.yyhcw.com_2018-08-11_11-19-18.png\" alt=\"\" width=\"685\" height=\"350\" \/><\/p>\n<p>\u67e5\u770b\u5b98\u65b9\u6587\u4ef6\u53d1\u73b0\u548c\u5e73\u65f6\u7684\u8fd8\u4e0d\u4e00\u6837\uff0c\u4ed6\u7684\u7cfb\u7edf\u5c5e\u4e8e\u5206\u79bb\u5f0f\u7684\uff0c\u5c31\u662f\u4e3b\u7a0b\u5e8f\u548c\u4e00\u4e9b\u6837\u5f0f\u4e4b\u7c7b\u7684\u4e0d\u5168\u5728\u6839\u76ee\u5f55\uff0c\u800c\u53ef\u8fd0\u884c\u6587\u4ef6\u5728web\u76ee\u5f55\u4e0b\uff0c\u597d\u5427\uff0c\u4fee\u6539\u5b9d\u5854\u7f51\u7ad9\u76ee\u5f55\u9009\u9879\uff1a<\/p>\n<p>\u7f51\u7ad9\u76ee\u5f55\u4e3a\uff1a\/www\/wwwroot\/www.21863.cn\u00a0 \u8fd0\u884c\u76ee\u5f55\u4e3a\uff1a\/web \u5373\u53ef<\/p>\n<p>\u6700\u540e\u4fee\u6539\u914d\u7f6e\u6587\u4ef6\u5982\u4e0b\uff1a<\/p>\n<pre class=\"lang:default decode:true \">server\r\n{\r\n    listen 80 default_server;\r\n    server_name www.21863.cn blog.yyhcw.com;\r\n\tindex app.php index.php index.html default.php default.htm default.html ;\r\n    root \/www\/wwwroot\/www.21863.cn\/web;\r\n    \r\n    #SSL-START SSL\u76f8\u5173\u914d\u7f6e\uff0c\u8bf7\u52ff\u5220\u9664\u6216\u4fee\u6539\u4e0b\u4e00\u884c\u5e26\u6ce8\u91ca\u7684404\u89c4\u5219\r\n    #error_page 404\/404.html;\r\n    #SSL-END\r\n    \r\n    #ERROR-PAGE-START  \u9519\u8bef\u9875\u914d\u7f6e\uff0c\u53ef\u4ee5\u6ce8\u91ca\u3001\u5220\u9664\u6216\u4fee\u6539\r\n    error_page 404 \/404.html;\r\n    error_page 502 \/502.html;\r\n    #ERROR-PAGE-END\r\n    \r\n    #PHP-INFO-START  PHP\u5f15\u7528\u914d\u7f6e\uff0c\u53ef\u4ee5\u6ce8\u91ca\u6216\u4fee\u6539\r\n    include enable-php-55.conf;\r\n    #PHP-INFO-END\r\n    \r\n    #REWRITE-START URL\u91cd\u5199\u89c4\u5219\u5f15\u7528,\u4fee\u6539\u540e\u5c06\u5bfc\u81f4\u9762\u677f\u8bbe\u7f6e\u7684\u4f2a\u9759\u6001\u89c4\u5219\u5931\u6548\r\n    #include \/www\/server\/panel\/vhost\/rewrite\/www.21863.cn.conf;\r\n    #REWRITE-END\r\n    \r\n    #\u7981\u6b62\u8bbf\u95ee\u7684\u6587\u4ef6\u6216\u76ee\u5f55\r\n    location ~ ^\/(\\.user.ini|\\.htaccess|\\.git|\\.svn|\\.project|LICENSE|README.md)\r\n    {\r\n        return 404;\r\n    }\r\n    \r\n    #\u4e00\u952e\u7533\u8bf7SSL\u8bc1\u4e66\u9a8c\u8bc1\u76ee\u5f55\u76f8\u5173\u8bbe\u7f6e\r\n    location ~ \\.well-known{\r\n        allow all;\r\n    }\r\n    \r\n    location ~ .*\\.(gif|jpg|jpeg|png|bmp|swf)$\r\n    {\r\n        expires      30d;\r\n        error_log off;\r\n        access_log off;\r\n    }\r\n    \r\n    location ~ .*\\.(js|css)?$\r\n    {\r\n        expires      12h;\r\n        error_log off;\r\n        access_log off; \r\n    }\r\n    location \/ { \r\n    \tindex app.php; \r\n    \ttry_files $uri @rewriteapp; \r\n    }\r\n    location @rewriteapp { \r\n    \trewrite ^(.*)$ \/app.php\/$1 last; \r\n    } \r\n  \r\n    access_log  \/www\/wwwlogs\/www.21863.cn.log;\r\n    error_log  \/www\/wwwlogs\/www.21863.cn.error.log;\r\n}<\/pre>\n<p>\u6700\u7ec8\u7f51\u7ad9\u680f\u76ee\u9875\u53ef\u987a\u5229\u6253\u5f00\uff01\u81f3\u6b64\u544a\u4e00\u6bb5\u843d\uff01<\/p>\n<!--wp-compress-html no compression--><!--wp-compress-html-->","protected":false},"excerpt":{"rendered":"\u4eca\u5929\u4e00\u4e2a\u5ba2\u6237\u7528\u7684\u5b9d\u5854Linux+nginx+EduSoho\u642d\u5efa\u7684\u6559\u80b2\u7cfb\u7edf\uff0c\u65e0\u6cd5\u8f93\u5165\u57df\u540d\u76f4\u63a5\u8fdb\u5165\uff0c\u5fc5\u987b\u8981\u952e\u5165ap \u00b7\u00b7\u00b7","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[3],"tags":[55,54,53],"views":1145,"_links":{"self":[{"href":"http:\/\/blog.yyhcw.com\/api\/wp\/v2\/posts\/390"}],"collection":[{"href":"http:\/\/blog.yyhcw.com\/api\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/blog.yyhcw.com\/api\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/blog.yyhcw.com\/api\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/blog.yyhcw.com\/api\/wp\/v2\/comments?post=390"}],"version-history":[{"count":0,"href":"http:\/\/blog.yyhcw.com\/api\/wp\/v2\/posts\/390\/revisions"}],"wp:attachment":[{"href":"http:\/\/blog.yyhcw.com\/api\/wp\/v2\/media?parent=390"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/blog.yyhcw.com\/api\/wp\/v2\/categories?post=390"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/blog.yyhcw.com\/api\/wp\/v2\/tags?post=390"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}