{"id":46393,"date":"2019-10-09T15:41:02","date_gmt":"2019-10-09T07:41:02","guid":{"rendered":"http:\/\/www.xyryd.com\/?p=46393"},"modified":"2020-04-02T14:04:56","modified_gmt":"2020-04-02T06:04:56","slug":"%e5%a6%82%e4%bd%95%e5%9c%a8docker%e5%ae%b9%e5%99%a8%e4%b8%ad%e5%ae%89%e8%a3%85-apache-php7-3%e9%85%8d%e7%bd%ae%e7%8e%af%e5%a2%83%ef%bc%9f","status":"publish","type":"post","link":"http:\/\/www.xyryd.com\/46393.html","title":{"rendered":"\u5982\u4f55\u5728Docker\u5bb9\u5668\u4e2d\u5b89\u88c5 apache php7.3\u914d\u7f6e\u73af\u5883\uff1f"},"content":{"rendered":"\n
\u524d\u9762\u6211\u4eec\u5199\u4e86 \u516c\u53f8OA\u9879\u76ee\u670d\u52a1\u5668\u914d\u7f6e\u6ce8\u610f\u70b9 <\/a>\uff0c\u8feb\u4e8e\u516c\u53f8\u7684\u7cfb\u7edf\u53ea\u6709\u73b0\u6210apache\u7684rewirte\u89c4\u5219\uff0c\u800c\u4e14\u6211\u5bf9apache\u5e76\u4e0d\u719f\u800c\u4e14\u4f7f\u7528\u5f97\u5f88\u5c11\uff0c\u6240\u4ee5\u8fd9\u91cc\u6211\u4eec\u8bb0\u5f55\u4e00\u4e0b\u5982\u4f55\u5728Docker\u5bb9\u5668\u4e2d\u914d\u7f6eapache+php7.3\u7684\u73af\u5883\uff0c\u5e9f\u8bdd\u4e0d\u591a\u8bf4\u76f4\u63a5\u770b\u914d\u7f6e\u3002<\/p>\n\n\n\n\n\n\u76ee\u5f55<\/p>\nToggle<\/span><\/path><\/svg><\/svg><\/span><\/span><\/span><\/a><\/span><\/div>\n\u5728powershell\u7ec8\u7aef\u4e2d\u90e8\u7f72\u5bb9\u5668<\/a><\/li>\u8fdb\u5165Docker\u5bb9\u5668<\/a><\/li>\u5728\u5bb9\u5668\u4e2d\u5b89\u88c5php\u6269\u5c55mysqli\uff0c\u542f\u7528rewrite\u529f\u80fd<\/a><\/li>\u914d\u7f6eapache\u6587\u4ef6<\/a><\/li>\u4fee\u6539hosts\uff08\u53ef\u9009\uff09<\/a><\/li>\u6d4f\u89c8\u5668\u8bbf\u95ee<\/a><\/li><\/ul><\/nav><\/div>\n<\/span>\u5728powershell\u7ec8\u7aef\u4e2d\u90e8\u7f72\u5bb9\u5668<\/span><\/h2>\n\n\n\ndocker run -d -p 8081:80 --name japache --link jmysql -v D:\\wwwroot:\/data\/wwwroot -v D:\\DockerConfig\\apache2\\sites-enabled\\:\/etc\/apache2\/sites-enabled\/ --restart=always php:7.3-apache<\/code><\/pre>\n\n\n\n\u7f51\u7ad9\u6587\u4ef6\u8ddf\u76ee\u5f55\u5728 D:\\wwwroot <\/code><\/p>\n\n\n\n\u8bf7\u6ce8\u610f\u5bb9\u5668\u4e0e\u4e3b\u673a\u4e4b\u95f4\u6620\u5c04\u6587\u4ef6\u7684\u5bf9\u5e94\u5173\u7cfb<\/strong>\u3002<\/p>\n\n\n\nDocker \u5b89\u88c5 Nginx \u6620\u5c04\u672c\u5730\u6587\u4ef6 \u591a\u865a\u62df\u4e3b\u673a \u56fe\u6587\u6559\u7a0b<\/a><\/li>Docker \u5b89\u88c5 PHP \u5e76\u914d\u5408 Nginx \u8fd0\u884c phpinfo<\/a><\/li><\/ul>\n\n\n\n<\/span>\u8fdb\u5165Docker\u5bb9\u5668<\/span><\/h2>\n\n\n\ndocker exec -it japache \/bin\/bash<\/code><\/pre>\n\n\n\n<\/span>\u5728\u5bb9\u5668\u4e2d\u5b89\u88c5php\u6269\u5c55mysqli\uff0c\u542f\u7528rewrite\u529f\u80fd<\/span><\/h2>\n\n\n\ndocker-php-ext-install mysqli\na2enmod rewrite<\/code><\/pre>\n\n\n\n<\/span>\u914d\u7f6eapache\u6587\u4ef6<\/span><\/h2>\n\n\n\n\u5728 D:\\DockerConfig\\apache2\\sites-enabled\\ <\/code>\u76ee\u5f55\u4e0b\u914d\u7f6e\u4e00\u4e2a\u540d\u4e3a poweridc.conf <\/code>\u7684\u6587\u4ef6\uff0c\u5185\u5bb9\u5982\u4e0b\uff1a<\/p>\n\n\n\n<VirtualHost *:80>\n\tServerName poweridc\n\n\tServerAdmin webmaster@localhost\n\tDocumentRoot \/data\/wwwroot\/POWER_IDC\n\n\t<Directory \/data\/wwwroot\/POWER_IDC>\n\t\tOptions Indexes FollowSymLinks\n\t\tAllowOverride All\n\t\tRequire all granted\n\t<\/Directory>\n\n\tRewriteEngine on\n\tRewriteCond %{REQUEST_METHOD} ^TRACE\n\tRewriteRule .* - [F]\n\tRewriteRule !(^\/static|\\.(gif|swf|exe|png|jpg|js|css)$) \/index.php [L]\n\n\tErrorLog ${APACHE_LOG_DIR}\/error.log\n\tCustomLog ${APACHE_LOG_DIR}\/access.log combined\n<\/VirtualHost><\/code><\/pre>\n\n\n\n<\/span>\u4fee\u6539hosts\uff08\u53ef\u9009\uff09<\/span><\/h2>\n\n\n\nLinux Windows MacOS \u7b49\u7cfb\u7edf\u4e2dhosts\u7684\u539f\u7406\u53ca\u4f5c\u7528<\/a><\/p>\n\n\n\n<\/span>\u6d4f\u89c8\u5668\u8bbf\u95ee<\/span><\/h2>\n\n\n\n<\/figure>\n","protected":false},"excerpt":{"rendered":"\u524d\u9762\u6211\u4eec\u5199\u4e86 \u516c\u53f8OA\u9879\u76ee\u670d\u52a1\u5668\u914d\u7f6e\u6ce8\u610f\u70b9 \uff0c\u8feb\u4e8e\u516c\u53f8\u7684\u7cfb\u7edf\u53ea\u6709\u73b0\u6210apache\u7684rewirte\u89c4\u5219\uff0c\u800c\u4e14\u6211\u5bf9 […]<\/p>\n","protected":false},"author":1,"featured_media":45862,"comment_status":"open","ping_status":"closed","sticky":false,"template":"single-with-sidebar","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[42,260,13,61,167],"aioseo_notices":[],"_links":{"self":[{"href":"http:\/\/www.xyryd.com\/wp-json\/wp\/v2\/posts\/46393"}],"collection":[{"href":"http:\/\/www.xyryd.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.xyryd.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.xyryd.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.xyryd.com\/wp-json\/wp\/v2\/comments?post=46393"}],"version-history":[{"count":0,"href":"http:\/\/www.xyryd.com\/wp-json\/wp\/v2\/posts\/46393\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/www.xyryd.com\/wp-json\/wp\/v2\/media\/45862"}],"wp:attachment":[{"href":"http:\/\/www.xyryd.com\/wp-json\/wp\/v2\/media?parent=46393"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.xyryd.com\/wp-json\/wp\/v2\/categories?post=46393"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.xyryd.com\/wp-json\/wp\/v2\/tags?post=46393"}],"curies":[{"name":"wp","href":"http:\/\/api.w.org\/{rel}","templated":true}]}}
\u76ee\u5f55<\/p>\nToggle<\/span><\/path><\/svg><\/svg><\/span><\/span><\/span><\/a><\/span><\/div>\n\u5728powershell\u7ec8\u7aef\u4e2d\u90e8\u7f72\u5bb9\u5668<\/a><\/li>\u8fdb\u5165Docker\u5bb9\u5668<\/a><\/li>\u5728\u5bb9\u5668\u4e2d\u5b89\u88c5php\u6269\u5c55mysqli\uff0c\u542f\u7528rewrite\u529f\u80fd<\/a><\/li>\u914d\u7f6eapache\u6587\u4ef6<\/a><\/li>\u4fee\u6539hosts\uff08\u53ef\u9009\uff09<\/a><\/li>\u6d4f\u89c8\u5668\u8bbf\u95ee<\/a><\/li><\/ul><\/nav><\/div>\n<\/span>\u5728powershell\u7ec8\u7aef\u4e2d\u90e8\u7f72\u5bb9\u5668<\/span><\/h2>\n\n\n\ndocker run -d -p 8081:80 --name japache --link jmysql -v D:\\wwwroot:\/data\/wwwroot -v D:\\DockerConfig\\apache2\\sites-enabled\\:\/etc\/apache2\/sites-enabled\/ --restart=always php:7.3-apache<\/code><\/pre>\n\n\n\n\u7f51\u7ad9\u6587\u4ef6\u8ddf\u76ee\u5f55\u5728 D:\\wwwroot <\/code><\/p>\n\n\n\n\u8bf7\u6ce8\u610f\u5bb9\u5668\u4e0e\u4e3b\u673a\u4e4b\u95f4\u6620\u5c04\u6587\u4ef6\u7684\u5bf9\u5e94\u5173\u7cfb<\/strong>\u3002<\/p>\n\n\n\nDocker \u5b89\u88c5 Nginx \u6620\u5c04\u672c\u5730\u6587\u4ef6 \u591a\u865a\u62df\u4e3b\u673a \u56fe\u6587\u6559\u7a0b<\/a><\/li>Docker \u5b89\u88c5 PHP \u5e76\u914d\u5408 Nginx \u8fd0\u884c phpinfo<\/a><\/li><\/ul>\n\n\n\n<\/span>\u8fdb\u5165Docker\u5bb9\u5668<\/span><\/h2>\n\n\n\ndocker exec -it japache \/bin\/bash<\/code><\/pre>\n\n\n\n<\/span>\u5728\u5bb9\u5668\u4e2d\u5b89\u88c5php\u6269\u5c55mysqli\uff0c\u542f\u7528rewrite\u529f\u80fd<\/span><\/h2>\n\n\n\ndocker-php-ext-install mysqli\na2enmod rewrite<\/code><\/pre>\n\n\n\n<\/span>\u914d\u7f6eapache\u6587\u4ef6<\/span><\/h2>\n\n\n\n\u5728 D:\\DockerConfig\\apache2\\sites-enabled\\ <\/code>\u76ee\u5f55\u4e0b\u914d\u7f6e\u4e00\u4e2a\u540d\u4e3a poweridc.conf <\/code>\u7684\u6587\u4ef6\uff0c\u5185\u5bb9\u5982\u4e0b\uff1a<\/p>\n\n\n\n<VirtualHost *:80>\n\tServerName poweridc\n\n\tServerAdmin webmaster@localhost\n\tDocumentRoot \/data\/wwwroot\/POWER_IDC\n\n\t<Directory \/data\/wwwroot\/POWER_IDC>\n\t\tOptions Indexes FollowSymLinks\n\t\tAllowOverride All\n\t\tRequire all granted\n\t<\/Directory>\n\n\tRewriteEngine on\n\tRewriteCond %{REQUEST_METHOD} ^TRACE\n\tRewriteRule .* - [F]\n\tRewriteRule !(^\/static|\\.(gif|swf|exe|png|jpg|js|css)$) \/index.php [L]\n\n\tErrorLog ${APACHE_LOG_DIR}\/error.log\n\tCustomLog ${APACHE_LOG_DIR}\/access.log combined\n<\/VirtualHost><\/code><\/pre>\n\n\n\n<\/span>\u4fee\u6539hosts\uff08\u53ef\u9009\uff09<\/span><\/h2>\n\n\n\nLinux Windows MacOS \u7b49\u7cfb\u7edf\u4e2dhosts\u7684\u539f\u7406\u53ca\u4f5c\u7528<\/a><\/p>\n\n\n\n<\/span>\u6d4f\u89c8\u5668\u8bbf\u95ee<\/span><\/h2>\n\n\n\n<\/figure>\n","protected":false},"excerpt":{"rendered":"\u524d\u9762\u6211\u4eec\u5199\u4e86 \u516c\u53f8OA\u9879\u76ee\u670d\u52a1\u5668\u914d\u7f6e\u6ce8\u610f\u70b9 \uff0c\u8feb\u4e8e\u516c\u53f8\u7684\u7cfb\u7edf\u53ea\u6709\u73b0\u6210apache\u7684rewirte\u89c4\u5219\uff0c\u800c\u4e14\u6211\u5bf9 […]<\/p>\n","protected":false},"author":1,"featured_media":45862,"comment_status":"open","ping_status":"closed","sticky":false,"template":"single-with-sidebar","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[42,260,13,61,167],"aioseo_notices":[],"_links":{"self":[{"href":"http:\/\/www.xyryd.com\/wp-json\/wp\/v2\/posts\/46393"}],"collection":[{"href":"http:\/\/www.xyryd.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.xyryd.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.xyryd.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.xyryd.com\/wp-json\/wp\/v2\/comments?post=46393"}],"version-history":[{"count":0,"href":"http:\/\/www.xyryd.com\/wp-json\/wp\/v2\/posts\/46393\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/www.xyryd.com\/wp-json\/wp\/v2\/media\/45862"}],"wp:attachment":[{"href":"http:\/\/www.xyryd.com\/wp-json\/wp\/v2\/media?parent=46393"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.xyryd.com\/wp-json\/wp\/v2\/categories?post=46393"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.xyryd.com\/wp-json\/wp\/v2\/tags?post=46393"}],"curies":[{"name":"wp","href":"http:\/\/api.w.org\/{rel}","templated":true}]}}
docker run -d -p 8081:80 --name japache --link jmysql -v D:\\wwwroot:\/data\/wwwroot -v D:\\DockerConfig\\apache2\\sites-enabled\\:\/etc\/apache2\/sites-enabled\/ --restart=always php:7.3-apache<\/code><\/pre>\n\n\n\n\u7f51\u7ad9\u6587\u4ef6\u8ddf\u76ee\u5f55\u5728 D:\\wwwroot <\/code><\/p>\n\n\n\n\u8bf7\u6ce8\u610f\u5bb9\u5668\u4e0e\u4e3b\u673a\u4e4b\u95f4\u6620\u5c04\u6587\u4ef6\u7684\u5bf9\u5e94\u5173\u7cfb<\/strong>\u3002<\/p>\n\n\n\nDocker \u5b89\u88c5 Nginx \u6620\u5c04\u672c\u5730\u6587\u4ef6 \u591a\u865a\u62df\u4e3b\u673a \u56fe\u6587\u6559\u7a0b<\/a><\/li>Docker \u5b89\u88c5 PHP \u5e76\u914d\u5408 Nginx \u8fd0\u884c phpinfo<\/a><\/li><\/ul>\n\n\n\n<\/span>\u8fdb\u5165Docker\u5bb9\u5668<\/span><\/h2>\n\n\n\ndocker exec -it japache \/bin\/bash<\/code><\/pre>\n\n\n\n<\/span>\u5728\u5bb9\u5668\u4e2d\u5b89\u88c5php\u6269\u5c55mysqli\uff0c\u542f\u7528rewrite\u529f\u80fd<\/span><\/h2>\n\n\n\ndocker-php-ext-install mysqli\na2enmod rewrite<\/code><\/pre>\n\n\n\n<\/span>\u914d\u7f6eapache\u6587\u4ef6<\/span><\/h2>\n\n\n\n\u5728 D:\\DockerConfig\\apache2\\sites-enabled\\ <\/code>\u76ee\u5f55\u4e0b\u914d\u7f6e\u4e00\u4e2a\u540d\u4e3a poweridc.conf <\/code>\u7684\u6587\u4ef6\uff0c\u5185\u5bb9\u5982\u4e0b\uff1a<\/p>\n\n\n\n<VirtualHost *:80>\n\tServerName poweridc\n\n\tServerAdmin webmaster@localhost\n\tDocumentRoot \/data\/wwwroot\/POWER_IDC\n\n\t<Directory \/data\/wwwroot\/POWER_IDC>\n\t\tOptions Indexes FollowSymLinks\n\t\tAllowOverride All\n\t\tRequire all granted\n\t<\/Directory>\n\n\tRewriteEngine on\n\tRewriteCond %{REQUEST_METHOD} ^TRACE\n\tRewriteRule .* - [F]\n\tRewriteRule !(^\/static|\\.(gif|swf|exe|png|jpg|js|css)$) \/index.php [L]\n\n\tErrorLog ${APACHE_LOG_DIR}\/error.log\n\tCustomLog ${APACHE_LOG_DIR}\/access.log combined\n<\/VirtualHost><\/code><\/pre>\n\n\n\n<\/span>\u4fee\u6539hosts\uff08\u53ef\u9009\uff09<\/span><\/h2>\n\n\n\nLinux Windows MacOS \u7b49\u7cfb\u7edf\u4e2dhosts\u7684\u539f\u7406\u53ca\u4f5c\u7528<\/a><\/p>\n\n\n\n<\/span>\u6d4f\u89c8\u5668\u8bbf\u95ee<\/span><\/h2>\n\n\n\n<\/figure>\n","protected":false},"excerpt":{"rendered":"\u524d\u9762\u6211\u4eec\u5199\u4e86 \u516c\u53f8OA\u9879\u76ee\u670d\u52a1\u5668\u914d\u7f6e\u6ce8\u610f\u70b9 \uff0c\u8feb\u4e8e\u516c\u53f8\u7684\u7cfb\u7edf\u53ea\u6709\u73b0\u6210apache\u7684rewirte\u89c4\u5219\uff0c\u800c\u4e14\u6211\u5bf9 […]<\/p>\n","protected":false},"author":1,"featured_media":45862,"comment_status":"open","ping_status":"closed","sticky":false,"template":"single-with-sidebar","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[42,260,13,61,167],"aioseo_notices":[],"_links":{"self":[{"href":"http:\/\/www.xyryd.com\/wp-json\/wp\/v2\/posts\/46393"}],"collection":[{"href":"http:\/\/www.xyryd.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.xyryd.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.xyryd.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.xyryd.com\/wp-json\/wp\/v2\/comments?post=46393"}],"version-history":[{"count":0,"href":"http:\/\/www.xyryd.com\/wp-json\/wp\/v2\/posts\/46393\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/www.xyryd.com\/wp-json\/wp\/v2\/media\/45862"}],"wp:attachment":[{"href":"http:\/\/www.xyryd.com\/wp-json\/wp\/v2\/media?parent=46393"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.xyryd.com\/wp-json\/wp\/v2\/categories?post=46393"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.xyryd.com\/wp-json\/wp\/v2\/tags?post=46393"}],"curies":[{"name":"wp","href":"http:\/\/api.w.org\/{rel}","templated":true}]}}
\u7f51\u7ad9\u6587\u4ef6\u8ddf\u76ee\u5f55\u5728 D:\\wwwroot <\/code><\/p>\n\n\n\n\u8bf7\u6ce8\u610f\u5bb9\u5668\u4e0e\u4e3b\u673a\u4e4b\u95f4\u6620\u5c04\u6587\u4ef6\u7684\u5bf9\u5e94\u5173\u7cfb<\/strong>\u3002<\/p>\n\n\n\nDocker \u5b89\u88c5 Nginx \u6620\u5c04\u672c\u5730\u6587\u4ef6 \u591a\u865a\u62df\u4e3b\u673a \u56fe\u6587\u6559\u7a0b<\/a><\/li>Docker \u5b89\u88c5 PHP \u5e76\u914d\u5408 Nginx \u8fd0\u884c phpinfo<\/a><\/li><\/ul>\n\n\n\n<\/span>\u8fdb\u5165Docker\u5bb9\u5668<\/span><\/h2>\n\n\n\ndocker exec -it japache \/bin\/bash<\/code><\/pre>\n\n\n\n<\/span>\u5728\u5bb9\u5668\u4e2d\u5b89\u88c5php\u6269\u5c55mysqli\uff0c\u542f\u7528rewrite\u529f\u80fd<\/span><\/h2>\n\n\n\ndocker-php-ext-install mysqli\na2enmod rewrite<\/code><\/pre>\n\n\n\n<\/span>\u914d\u7f6eapache\u6587\u4ef6<\/span><\/h2>\n\n\n\n\u5728 D:\\DockerConfig\\apache2\\sites-enabled\\ <\/code>\u76ee\u5f55\u4e0b\u914d\u7f6e\u4e00\u4e2a\u540d\u4e3a poweridc.conf <\/code>\u7684\u6587\u4ef6\uff0c\u5185\u5bb9\u5982\u4e0b\uff1a<\/p>\n\n\n\n<VirtualHost *:80>\n\tServerName poweridc\n\n\tServerAdmin webmaster@localhost\n\tDocumentRoot \/data\/wwwroot\/POWER_IDC\n\n\t<Directory \/data\/wwwroot\/POWER_IDC>\n\t\tOptions Indexes FollowSymLinks\n\t\tAllowOverride All\n\t\tRequire all granted\n\t<\/Directory>\n\n\tRewriteEngine on\n\tRewriteCond %{REQUEST_METHOD} ^TRACE\n\tRewriteRule .* - [F]\n\tRewriteRule !(^\/static|\\.(gif|swf|exe|png|jpg|js|css)$) \/index.php [L]\n\n\tErrorLog ${APACHE_LOG_DIR}\/error.log\n\tCustomLog ${APACHE_LOG_DIR}\/access.log combined\n<\/VirtualHost><\/code><\/pre>\n\n\n\n<\/span>\u4fee\u6539hosts\uff08\u53ef\u9009\uff09<\/span><\/h2>\n\n\n\nLinux Windows MacOS \u7b49\u7cfb\u7edf\u4e2dhosts\u7684\u539f\u7406\u53ca\u4f5c\u7528<\/a><\/p>\n\n\n\n<\/span>\u6d4f\u89c8\u5668\u8bbf\u95ee<\/span><\/h2>\n\n\n\n<\/figure>\n","protected":false},"excerpt":{"rendered":"\u524d\u9762\u6211\u4eec\u5199\u4e86 \u516c\u53f8OA\u9879\u76ee\u670d\u52a1\u5668\u914d\u7f6e\u6ce8\u610f\u70b9 \uff0c\u8feb\u4e8e\u516c\u53f8\u7684\u7cfb\u7edf\u53ea\u6709\u73b0\u6210apache\u7684rewirte\u89c4\u5219\uff0c\u800c\u4e14\u6211\u5bf9 […]<\/p>\n","protected":false},"author":1,"featured_media":45862,"comment_status":"open","ping_status":"closed","sticky":false,"template":"single-with-sidebar","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[42,260,13,61,167],"aioseo_notices":[],"_links":{"self":[{"href":"http:\/\/www.xyryd.com\/wp-json\/wp\/v2\/posts\/46393"}],"collection":[{"href":"http:\/\/www.xyryd.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.xyryd.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.xyryd.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.xyryd.com\/wp-json\/wp\/v2\/comments?post=46393"}],"version-history":[{"count":0,"href":"http:\/\/www.xyryd.com\/wp-json\/wp\/v2\/posts\/46393\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/www.xyryd.com\/wp-json\/wp\/v2\/media\/45862"}],"wp:attachment":[{"href":"http:\/\/www.xyryd.com\/wp-json\/wp\/v2\/media?parent=46393"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.xyryd.com\/wp-json\/wp\/v2\/categories?post=46393"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.xyryd.com\/wp-json\/wp\/v2\/tags?post=46393"}],"curies":[{"name":"wp","href":"http:\/\/api.w.org\/{rel}","templated":true}]}}
D:\\wwwroot <\/code><\/p>\n\n\n\n\u8bf7\u6ce8\u610f\u5bb9\u5668\u4e0e\u4e3b\u673a\u4e4b\u95f4\u6620\u5c04\u6587\u4ef6\u7684\u5bf9\u5e94\u5173\u7cfb<\/strong>\u3002<\/p>\n\n\n\nDocker \u5b89\u88c5 Nginx \u6620\u5c04\u672c\u5730\u6587\u4ef6 \u591a\u865a\u62df\u4e3b\u673a \u56fe\u6587\u6559\u7a0b<\/a><\/li>Docker \u5b89\u88c5 PHP \u5e76\u914d\u5408 Nginx \u8fd0\u884c phpinfo<\/a><\/li><\/ul>\n\n\n\n<\/span>\u8fdb\u5165Docker\u5bb9\u5668<\/span><\/h2>\n\n\n\ndocker exec -it japache \/bin\/bash<\/code><\/pre>\n\n\n\n<\/span>\u5728\u5bb9\u5668\u4e2d\u5b89\u88c5php\u6269\u5c55mysqli\uff0c\u542f\u7528rewrite\u529f\u80fd<\/span><\/h2>\n\n\n\ndocker-php-ext-install mysqli\na2enmod rewrite<\/code><\/pre>\n\n\n\n<\/span>\u914d\u7f6eapache\u6587\u4ef6<\/span><\/h2>\n\n\n\n\u5728 D:\\DockerConfig\\apache2\\sites-enabled\\ <\/code>\u76ee\u5f55\u4e0b\u914d\u7f6e\u4e00\u4e2a\u540d\u4e3a poweridc.conf <\/code>\u7684\u6587\u4ef6\uff0c\u5185\u5bb9\u5982\u4e0b\uff1a<\/p>\n\n\n\n<VirtualHost *:80>\n\tServerName poweridc\n\n\tServerAdmin webmaster@localhost\n\tDocumentRoot \/data\/wwwroot\/POWER_IDC\n\n\t<Directory \/data\/wwwroot\/POWER_IDC>\n\t\tOptions Indexes FollowSymLinks\n\t\tAllowOverride All\n\t\tRequire all granted\n\t<\/Directory>\n\n\tRewriteEngine on\n\tRewriteCond %{REQUEST_METHOD} ^TRACE\n\tRewriteRule .* - [F]\n\tRewriteRule !(^\/static|\\.(gif|swf|exe|png|jpg|js|css)$) \/index.php [L]\n\n\tErrorLog ${APACHE_LOG_DIR}\/error.log\n\tCustomLog ${APACHE_LOG_DIR}\/access.log combined\n<\/VirtualHost><\/code><\/pre>\n\n\n\n<\/span>\u4fee\u6539hosts\uff08\u53ef\u9009\uff09<\/span><\/h2>\n\n\n\nLinux Windows MacOS \u7b49\u7cfb\u7edf\u4e2dhosts\u7684\u539f\u7406\u53ca\u4f5c\u7528<\/a><\/p>\n\n\n\n<\/span>\u6d4f\u89c8\u5668\u8bbf\u95ee<\/span><\/h2>\n\n\n\n<\/figure>\n","protected":false},"excerpt":{"rendered":"\u524d\u9762\u6211\u4eec\u5199\u4e86 \u516c\u53f8OA\u9879\u76ee\u670d\u52a1\u5668\u914d\u7f6e\u6ce8\u610f\u70b9 \uff0c\u8feb\u4e8e\u516c\u53f8\u7684\u7cfb\u7edf\u53ea\u6709\u73b0\u6210apache\u7684rewirte\u89c4\u5219\uff0c\u800c\u4e14\u6211\u5bf9 […]<\/p>\n","protected":false},"author":1,"featured_media":45862,"comment_status":"open","ping_status":"closed","sticky":false,"template":"single-with-sidebar","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[42,260,13,61,167],"aioseo_notices":[],"_links":{"self":[{"href":"http:\/\/www.xyryd.com\/wp-json\/wp\/v2\/posts\/46393"}],"collection":[{"href":"http:\/\/www.xyryd.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.xyryd.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.xyryd.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.xyryd.com\/wp-json\/wp\/v2\/comments?post=46393"}],"version-history":[{"count":0,"href":"http:\/\/www.xyryd.com\/wp-json\/wp\/v2\/posts\/46393\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/www.xyryd.com\/wp-json\/wp\/v2\/media\/45862"}],"wp:attachment":[{"href":"http:\/\/www.xyryd.com\/wp-json\/wp\/v2\/media?parent=46393"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.xyryd.com\/wp-json\/wp\/v2\/categories?post=46393"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.xyryd.com\/wp-json\/wp\/v2\/tags?post=46393"}],"curies":[{"name":"wp","href":"http:\/\/api.w.org\/{rel}","templated":true}]}}
\u8bf7\u6ce8\u610f\u5bb9\u5668\u4e0e\u4e3b\u673a\u4e4b\u95f4\u6620\u5c04\u6587\u4ef6\u7684\u5bf9\u5e94\u5173\u7cfb<\/strong>\u3002<\/p>\n\n\n\nDocker \u5b89\u88c5 Nginx \u6620\u5c04\u672c\u5730\u6587\u4ef6 \u591a\u865a\u62df\u4e3b\u673a \u56fe\u6587\u6559\u7a0b<\/a><\/li>Docker \u5b89\u88c5 PHP \u5e76\u914d\u5408 Nginx \u8fd0\u884c phpinfo<\/a><\/li><\/ul>\n\n\n\n<\/span>\u8fdb\u5165Docker\u5bb9\u5668<\/span><\/h2>\n\n\n\ndocker exec -it japache \/bin\/bash<\/code><\/pre>\n\n\n\n<\/span>\u5728\u5bb9\u5668\u4e2d\u5b89\u88c5php\u6269\u5c55mysqli\uff0c\u542f\u7528rewrite\u529f\u80fd<\/span><\/h2>\n\n\n\ndocker-php-ext-install mysqli\na2enmod rewrite<\/code><\/pre>\n\n\n\n<\/span>\u914d\u7f6eapache\u6587\u4ef6<\/span><\/h2>\n\n\n\n\u5728 D:\\DockerConfig\\apache2\\sites-enabled\\ <\/code>\u76ee\u5f55\u4e0b\u914d\u7f6e\u4e00\u4e2a\u540d\u4e3a poweridc.conf <\/code>\u7684\u6587\u4ef6\uff0c\u5185\u5bb9\u5982\u4e0b\uff1a<\/p>\n\n\n\n<VirtualHost *:80>\n\tServerName poweridc\n\n\tServerAdmin webmaster@localhost\n\tDocumentRoot \/data\/wwwroot\/POWER_IDC\n\n\t<Directory \/data\/wwwroot\/POWER_IDC>\n\t\tOptions Indexes FollowSymLinks\n\t\tAllowOverride All\n\t\tRequire all granted\n\t<\/Directory>\n\n\tRewriteEngine on\n\tRewriteCond %{REQUEST_METHOD} ^TRACE\n\tRewriteRule .* - [F]\n\tRewriteRule !(^\/static|\\.(gif|swf|exe|png|jpg|js|css)$) \/index.php [L]\n\n\tErrorLog ${APACHE_LOG_DIR}\/error.log\n\tCustomLog ${APACHE_LOG_DIR}\/access.log combined\n<\/VirtualHost><\/code><\/pre>\n\n\n\n<\/span>\u4fee\u6539hosts\uff08\u53ef\u9009\uff09<\/span><\/h2>\n\n\n\nLinux Windows MacOS \u7b49\u7cfb\u7edf\u4e2dhosts\u7684\u539f\u7406\u53ca\u4f5c\u7528<\/a><\/p>\n\n\n\n<\/span>\u6d4f\u89c8\u5668\u8bbf\u95ee<\/span><\/h2>\n\n\n\n<\/figure>\n","protected":false},"excerpt":{"rendered":"\u524d\u9762\u6211\u4eec\u5199\u4e86 \u516c\u53f8OA\u9879\u76ee\u670d\u52a1\u5668\u914d\u7f6e\u6ce8\u610f\u70b9 \uff0c\u8feb\u4e8e\u516c\u53f8\u7684\u7cfb\u7edf\u53ea\u6709\u73b0\u6210apache\u7684rewirte\u89c4\u5219\uff0c\u800c\u4e14\u6211\u5bf9 […]<\/p>\n","protected":false},"author":1,"featured_media":45862,"comment_status":"open","ping_status":"closed","sticky":false,"template":"single-with-sidebar","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[42,260,13,61,167],"aioseo_notices":[],"_links":{"self":[{"href":"http:\/\/www.xyryd.com\/wp-json\/wp\/v2\/posts\/46393"}],"collection":[{"href":"http:\/\/www.xyryd.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.xyryd.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.xyryd.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.xyryd.com\/wp-json\/wp\/v2\/comments?post=46393"}],"version-history":[{"count":0,"href":"http:\/\/www.xyryd.com\/wp-json\/wp\/v2\/posts\/46393\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/www.xyryd.com\/wp-json\/wp\/v2\/media\/45862"}],"wp:attachment":[{"href":"http:\/\/www.xyryd.com\/wp-json\/wp\/v2\/media?parent=46393"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.xyryd.com\/wp-json\/wp\/v2\/categories?post=46393"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.xyryd.com\/wp-json\/wp\/v2\/tags?post=46393"}],"curies":[{"name":"wp","href":"http:\/\/api.w.org\/{rel}","templated":true}]}}
docker exec -it japache \/bin\/bash<\/code><\/pre>\n\n\n\n<\/span>\u5728\u5bb9\u5668\u4e2d\u5b89\u88c5php\u6269\u5c55mysqli\uff0c\u542f\u7528rewrite\u529f\u80fd<\/span><\/h2>\n\n\n\ndocker-php-ext-install mysqli\na2enmod rewrite<\/code><\/pre>\n\n\n\n<\/span>\u914d\u7f6eapache\u6587\u4ef6<\/span><\/h2>\n\n\n\n\u5728 D:\\DockerConfig\\apache2\\sites-enabled\\ <\/code>\u76ee\u5f55\u4e0b\u914d\u7f6e\u4e00\u4e2a\u540d\u4e3a poweridc.conf <\/code>\u7684\u6587\u4ef6\uff0c\u5185\u5bb9\u5982\u4e0b\uff1a<\/p>\n\n\n\n<VirtualHost *:80>\n\tServerName poweridc\n\n\tServerAdmin webmaster@localhost\n\tDocumentRoot \/data\/wwwroot\/POWER_IDC\n\n\t<Directory \/data\/wwwroot\/POWER_IDC>\n\t\tOptions Indexes FollowSymLinks\n\t\tAllowOverride All\n\t\tRequire all granted\n\t<\/Directory>\n\n\tRewriteEngine on\n\tRewriteCond %{REQUEST_METHOD} ^TRACE\n\tRewriteRule .* - [F]\n\tRewriteRule !(^\/static|\\.(gif|swf|exe|png|jpg|js|css)$) \/index.php [L]\n\n\tErrorLog ${APACHE_LOG_DIR}\/error.log\n\tCustomLog ${APACHE_LOG_DIR}\/access.log combined\n<\/VirtualHost><\/code><\/pre>\n\n\n\n<\/span>\u4fee\u6539hosts\uff08\u53ef\u9009\uff09<\/span><\/h2>\n\n\n\nLinux Windows MacOS \u7b49\u7cfb\u7edf\u4e2dhosts\u7684\u539f\u7406\u53ca\u4f5c\u7528<\/a><\/p>\n\n\n\n<\/span>\u6d4f\u89c8\u5668\u8bbf\u95ee<\/span><\/h2>\n\n\n\n<\/figure>\n","protected":false},"excerpt":{"rendered":"\u524d\u9762\u6211\u4eec\u5199\u4e86 \u516c\u53f8OA\u9879\u76ee\u670d\u52a1\u5668\u914d\u7f6e\u6ce8\u610f\u70b9 \uff0c\u8feb\u4e8e\u516c\u53f8\u7684\u7cfb\u7edf\u53ea\u6709\u73b0\u6210apache\u7684rewirte\u89c4\u5219\uff0c\u800c\u4e14\u6211\u5bf9 […]<\/p>\n","protected":false},"author":1,"featured_media":45862,"comment_status":"open","ping_status":"closed","sticky":false,"template":"single-with-sidebar","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[42,260,13,61,167],"aioseo_notices":[],"_links":{"self":[{"href":"http:\/\/www.xyryd.com\/wp-json\/wp\/v2\/posts\/46393"}],"collection":[{"href":"http:\/\/www.xyryd.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.xyryd.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.xyryd.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.xyryd.com\/wp-json\/wp\/v2\/comments?post=46393"}],"version-history":[{"count":0,"href":"http:\/\/www.xyryd.com\/wp-json\/wp\/v2\/posts\/46393\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/www.xyryd.com\/wp-json\/wp\/v2\/media\/45862"}],"wp:attachment":[{"href":"http:\/\/www.xyryd.com\/wp-json\/wp\/v2\/media?parent=46393"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.xyryd.com\/wp-json\/wp\/v2\/categories?post=46393"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.xyryd.com\/wp-json\/wp\/v2\/tags?post=46393"}],"curies":[{"name":"wp","href":"http:\/\/api.w.org\/{rel}","templated":true}]}}
docker-php-ext-install mysqli\na2enmod rewrite<\/code><\/pre>\n\n\n\n<\/span>\u914d\u7f6eapache\u6587\u4ef6<\/span><\/h2>\n\n\n\n\u5728 D:\\DockerConfig\\apache2\\sites-enabled\\ <\/code>\u76ee\u5f55\u4e0b\u914d\u7f6e\u4e00\u4e2a\u540d\u4e3a poweridc.conf <\/code>\u7684\u6587\u4ef6\uff0c\u5185\u5bb9\u5982\u4e0b\uff1a<\/p>\n\n\n\n<VirtualHost *:80>\n\tServerName poweridc\n\n\tServerAdmin webmaster@localhost\n\tDocumentRoot \/data\/wwwroot\/POWER_IDC\n\n\t<Directory \/data\/wwwroot\/POWER_IDC>\n\t\tOptions Indexes FollowSymLinks\n\t\tAllowOverride All\n\t\tRequire all granted\n\t<\/Directory>\n\n\tRewriteEngine on\n\tRewriteCond %{REQUEST_METHOD} ^TRACE\n\tRewriteRule .* - [F]\n\tRewriteRule !(^\/static|\\.(gif|swf|exe|png|jpg|js|css)$) \/index.php [L]\n\n\tErrorLog ${APACHE_LOG_DIR}\/error.log\n\tCustomLog ${APACHE_LOG_DIR}\/access.log combined\n<\/VirtualHost><\/code><\/pre>\n\n\n\n<\/span>\u4fee\u6539hosts\uff08\u53ef\u9009\uff09<\/span><\/h2>\n\n\n\nLinux Windows MacOS \u7b49\u7cfb\u7edf\u4e2dhosts\u7684\u539f\u7406\u53ca\u4f5c\u7528<\/a><\/p>\n\n\n\n<\/span>\u6d4f\u89c8\u5668\u8bbf\u95ee<\/span><\/h2>\n\n\n\n<\/figure>\n","protected":false},"excerpt":{"rendered":"\u524d\u9762\u6211\u4eec\u5199\u4e86 \u516c\u53f8OA\u9879\u76ee\u670d\u52a1\u5668\u914d\u7f6e\u6ce8\u610f\u70b9 \uff0c\u8feb\u4e8e\u516c\u53f8\u7684\u7cfb\u7edf\u53ea\u6709\u73b0\u6210apache\u7684rewirte\u89c4\u5219\uff0c\u800c\u4e14\u6211\u5bf9 […]<\/p>\n","protected":false},"author":1,"featured_media":45862,"comment_status":"open","ping_status":"closed","sticky":false,"template":"single-with-sidebar","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[42,260,13,61,167],"aioseo_notices":[],"_links":{"self":[{"href":"http:\/\/www.xyryd.com\/wp-json\/wp\/v2\/posts\/46393"}],"collection":[{"href":"http:\/\/www.xyryd.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.xyryd.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.xyryd.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.xyryd.com\/wp-json\/wp\/v2\/comments?post=46393"}],"version-history":[{"count":0,"href":"http:\/\/www.xyryd.com\/wp-json\/wp\/v2\/posts\/46393\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/www.xyryd.com\/wp-json\/wp\/v2\/media\/45862"}],"wp:attachment":[{"href":"http:\/\/www.xyryd.com\/wp-json\/wp\/v2\/media?parent=46393"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.xyryd.com\/wp-json\/wp\/v2\/categories?post=46393"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.xyryd.com\/wp-json\/wp\/v2\/tags?post=46393"}],"curies":[{"name":"wp","href":"http:\/\/api.w.org\/{rel}","templated":true}]}}
\u5728 D:\\DockerConfig\\apache2\\sites-enabled\\ <\/code>\u76ee\u5f55\u4e0b\u914d\u7f6e\u4e00\u4e2a\u540d\u4e3a poweridc.conf <\/code>\u7684\u6587\u4ef6\uff0c\u5185\u5bb9\u5982\u4e0b\uff1a<\/p>\n\n\n\n<VirtualHost *:80>\n\tServerName poweridc\n\n\tServerAdmin webmaster@localhost\n\tDocumentRoot \/data\/wwwroot\/POWER_IDC\n\n\t<Directory \/data\/wwwroot\/POWER_IDC>\n\t\tOptions Indexes FollowSymLinks\n\t\tAllowOverride All\n\t\tRequire all granted\n\t<\/Directory>\n\n\tRewriteEngine on\n\tRewriteCond %{REQUEST_METHOD} ^TRACE\n\tRewriteRule .* - [F]\n\tRewriteRule !(^\/static|\\.(gif|swf|exe|png|jpg|js|css)$) \/index.php [L]\n\n\tErrorLog ${APACHE_LOG_DIR}\/error.log\n\tCustomLog ${APACHE_LOG_DIR}\/access.log combined\n<\/VirtualHost><\/code><\/pre>\n\n\n\n<\/span>\u4fee\u6539hosts\uff08\u53ef\u9009\uff09<\/span><\/h2>\n\n\n\nLinux Windows MacOS \u7b49\u7cfb\u7edf\u4e2dhosts\u7684\u539f\u7406\u53ca\u4f5c\u7528<\/a><\/p>\n\n\n\n<\/span>\u6d4f\u89c8\u5668\u8bbf\u95ee<\/span><\/h2>\n\n\n\n<\/figure>\n","protected":false},"excerpt":{"rendered":"\u524d\u9762\u6211\u4eec\u5199\u4e86 \u516c\u53f8OA\u9879\u76ee\u670d\u52a1\u5668\u914d\u7f6e\u6ce8\u610f\u70b9 \uff0c\u8feb\u4e8e\u516c\u53f8\u7684\u7cfb\u7edf\u53ea\u6709\u73b0\u6210apache\u7684rewirte\u89c4\u5219\uff0c\u800c\u4e14\u6211\u5bf9 […]<\/p>\n","protected":false},"author":1,"featured_media":45862,"comment_status":"open","ping_status":"closed","sticky":false,"template":"single-with-sidebar","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[42,260,13,61,167],"aioseo_notices":[],"_links":{"self":[{"href":"http:\/\/www.xyryd.com\/wp-json\/wp\/v2\/posts\/46393"}],"collection":[{"href":"http:\/\/www.xyryd.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.xyryd.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.xyryd.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.xyryd.com\/wp-json\/wp\/v2\/comments?post=46393"}],"version-history":[{"count":0,"href":"http:\/\/www.xyryd.com\/wp-json\/wp\/v2\/posts\/46393\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/www.xyryd.com\/wp-json\/wp\/v2\/media\/45862"}],"wp:attachment":[{"href":"http:\/\/www.xyryd.com\/wp-json\/wp\/v2\/media?parent=46393"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.xyryd.com\/wp-json\/wp\/v2\/categories?post=46393"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.xyryd.com\/wp-json\/wp\/v2\/tags?post=46393"}],"curies":[{"name":"wp","href":"http:\/\/api.w.org\/{rel}","templated":true}]}}
D:\\DockerConfig\\apache2\\sites-enabled\\ <\/code>\u76ee\u5f55\u4e0b\u914d\u7f6e\u4e00\u4e2a\u540d\u4e3a poweridc.conf <\/code>\u7684\u6587\u4ef6\uff0c\u5185\u5bb9\u5982\u4e0b\uff1a<\/p>\n\n\n\n<VirtualHost *:80>\n\tServerName poweridc\n\n\tServerAdmin webmaster@localhost\n\tDocumentRoot \/data\/wwwroot\/POWER_IDC\n\n\t<Directory \/data\/wwwroot\/POWER_IDC>\n\t\tOptions Indexes FollowSymLinks\n\t\tAllowOverride All\n\t\tRequire all granted\n\t<\/Directory>\n\n\tRewriteEngine on\n\tRewriteCond %{REQUEST_METHOD} ^TRACE\n\tRewriteRule .* - [F]\n\tRewriteRule !(^\/static|\\.(gif|swf|exe|png|jpg|js|css)$) \/index.php [L]\n\n\tErrorLog ${APACHE_LOG_DIR}\/error.log\n\tCustomLog ${APACHE_LOG_DIR}\/access.log combined\n<\/VirtualHost><\/code><\/pre>\n\n\n\n<\/span>\u4fee\u6539hosts\uff08\u53ef\u9009\uff09<\/span><\/h2>\n\n\n\nLinux Windows MacOS \u7b49\u7cfb\u7edf\u4e2dhosts\u7684\u539f\u7406\u53ca\u4f5c\u7528<\/a><\/p>\n\n\n\n<\/span>\u6d4f\u89c8\u5668\u8bbf\u95ee<\/span><\/h2>\n\n\n\n<\/figure>\n","protected":false},"excerpt":{"rendered":"\u524d\u9762\u6211\u4eec\u5199\u4e86 \u516c\u53f8OA\u9879\u76ee\u670d\u52a1\u5668\u914d\u7f6e\u6ce8\u610f\u70b9 \uff0c\u8feb\u4e8e\u516c\u53f8\u7684\u7cfb\u7edf\u53ea\u6709\u73b0\u6210apache\u7684rewirte\u89c4\u5219\uff0c\u800c\u4e14\u6211\u5bf9 […]<\/p>\n","protected":false},"author":1,"featured_media":45862,"comment_status":"open","ping_status":"closed","sticky":false,"template":"single-with-sidebar","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[42,260,13,61,167],"aioseo_notices":[],"_links":{"self":[{"href":"http:\/\/www.xyryd.com\/wp-json\/wp\/v2\/posts\/46393"}],"collection":[{"href":"http:\/\/www.xyryd.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.xyryd.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.xyryd.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.xyryd.com\/wp-json\/wp\/v2\/comments?post=46393"}],"version-history":[{"count":0,"href":"http:\/\/www.xyryd.com\/wp-json\/wp\/v2\/posts\/46393\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/www.xyryd.com\/wp-json\/wp\/v2\/media\/45862"}],"wp:attachment":[{"href":"http:\/\/www.xyryd.com\/wp-json\/wp\/v2\/media?parent=46393"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.xyryd.com\/wp-json\/wp\/v2\/categories?post=46393"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.xyryd.com\/wp-json\/wp\/v2\/tags?post=46393"}],"curies":[{"name":"wp","href":"http:\/\/api.w.org\/{rel}","templated":true}]}}
poweridc.conf <\/code>\u7684\u6587\u4ef6\uff0c\u5185\u5bb9\u5982\u4e0b\uff1a<\/p>\n\n\n\n<VirtualHost *:80>\n\tServerName poweridc\n\n\tServerAdmin webmaster@localhost\n\tDocumentRoot \/data\/wwwroot\/POWER_IDC\n\n\t<Directory \/data\/wwwroot\/POWER_IDC>\n\t\tOptions Indexes FollowSymLinks\n\t\tAllowOverride All\n\t\tRequire all granted\n\t<\/Directory>\n\n\tRewriteEngine on\n\tRewriteCond %{REQUEST_METHOD} ^TRACE\n\tRewriteRule .* - [F]\n\tRewriteRule !(^\/static|\\.(gif|swf|exe|png|jpg|js|css)$) \/index.php [L]\n\n\tErrorLog ${APACHE_LOG_DIR}\/error.log\n\tCustomLog ${APACHE_LOG_DIR}\/access.log combined\n<\/VirtualHost><\/code><\/pre>\n\n\n\n<\/span>\u4fee\u6539hosts\uff08\u53ef\u9009\uff09<\/span><\/h2>\n\n\n\nLinux Windows MacOS \u7b49\u7cfb\u7edf\u4e2dhosts\u7684\u539f\u7406\u53ca\u4f5c\u7528<\/a><\/p>\n\n\n\n<\/span>\u6d4f\u89c8\u5668\u8bbf\u95ee<\/span><\/h2>\n\n\n\n<\/figure>\n","protected":false},"excerpt":{"rendered":"\u524d\u9762\u6211\u4eec\u5199\u4e86 \u516c\u53f8OA\u9879\u76ee\u670d\u52a1\u5668\u914d\u7f6e\u6ce8\u610f\u70b9 \uff0c\u8feb\u4e8e\u516c\u53f8\u7684\u7cfb\u7edf\u53ea\u6709\u73b0\u6210apache\u7684rewirte\u89c4\u5219\uff0c\u800c\u4e14\u6211\u5bf9 […]<\/p>\n","protected":false},"author":1,"featured_media":45862,"comment_status":"open","ping_status":"closed","sticky":false,"template":"single-with-sidebar","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[42,260,13,61,167],"aioseo_notices":[],"_links":{"self":[{"href":"http:\/\/www.xyryd.com\/wp-json\/wp\/v2\/posts\/46393"}],"collection":[{"href":"http:\/\/www.xyryd.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.xyryd.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.xyryd.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.xyryd.com\/wp-json\/wp\/v2\/comments?post=46393"}],"version-history":[{"count":0,"href":"http:\/\/www.xyryd.com\/wp-json\/wp\/v2\/posts\/46393\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/www.xyryd.com\/wp-json\/wp\/v2\/media\/45862"}],"wp:attachment":[{"href":"http:\/\/www.xyryd.com\/wp-json\/wp\/v2\/media?parent=46393"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.xyryd.com\/wp-json\/wp\/v2\/categories?post=46393"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.xyryd.com\/wp-json\/wp\/v2\/tags?post=46393"}],"curies":[{"name":"wp","href":"http:\/\/api.w.org\/{rel}","templated":true}]}}
<VirtualHost *:80>\n\tServerName poweridc\n\n\tServerAdmin webmaster@localhost\n\tDocumentRoot \/data\/wwwroot\/POWER_IDC\n\n\t<Directory \/data\/wwwroot\/POWER_IDC>\n\t\tOptions Indexes FollowSymLinks\n\t\tAllowOverride All\n\t\tRequire all granted\n\t<\/Directory>\n\n\tRewriteEngine on\n\tRewriteCond %{REQUEST_METHOD} ^TRACE\n\tRewriteRule .* - [F]\n\tRewriteRule !(^\/static|\\.(gif|swf|exe|png|jpg|js|css)$) \/index.php [L]\n\n\tErrorLog ${APACHE_LOG_DIR}\/error.log\n\tCustomLog ${APACHE_LOG_DIR}\/access.log combined\n<\/VirtualHost><\/code><\/pre>\n\n\n\n<\/span>\u4fee\u6539hosts\uff08\u53ef\u9009\uff09<\/span><\/h2>\n\n\n\nLinux Windows MacOS \u7b49\u7cfb\u7edf\u4e2dhosts\u7684\u539f\u7406\u53ca\u4f5c\u7528<\/a><\/p>\n\n\n\n<\/span>\u6d4f\u89c8\u5668\u8bbf\u95ee<\/span><\/h2>\n\n\n\n<\/figure>\n","protected":false},"excerpt":{"rendered":"\u524d\u9762\u6211\u4eec\u5199\u4e86 \u516c\u53f8OA\u9879\u76ee\u670d\u52a1\u5668\u914d\u7f6e\u6ce8\u610f\u70b9 \uff0c\u8feb\u4e8e\u516c\u53f8\u7684\u7cfb\u7edf\u53ea\u6709\u73b0\u6210apache\u7684rewirte\u89c4\u5219\uff0c\u800c\u4e14\u6211\u5bf9 […]<\/p>\n","protected":false},"author":1,"featured_media":45862,"comment_status":"open","ping_status":"closed","sticky":false,"template":"single-with-sidebar","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[42,260,13,61,167],"aioseo_notices":[],"_links":{"self":[{"href":"http:\/\/www.xyryd.com\/wp-json\/wp\/v2\/posts\/46393"}],"collection":[{"href":"http:\/\/www.xyryd.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.xyryd.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.xyryd.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.xyryd.com\/wp-json\/wp\/v2\/comments?post=46393"}],"version-history":[{"count":0,"href":"http:\/\/www.xyryd.com\/wp-json\/wp\/v2\/posts\/46393\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/www.xyryd.com\/wp-json\/wp\/v2\/media\/45862"}],"wp:attachment":[{"href":"http:\/\/www.xyryd.com\/wp-json\/wp\/v2\/media?parent=46393"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.xyryd.com\/wp-json\/wp\/v2\/categories?post=46393"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.xyryd.com\/wp-json\/wp\/v2\/tags?post=46393"}],"curies":[{"name":"wp","href":"http:\/\/api.w.org\/{rel}","templated":true}]}}
Linux Windows MacOS \u7b49\u7cfb\u7edf\u4e2dhosts\u7684\u539f\u7406\u53ca\u4f5c\u7528<\/a><\/p>\n\n\n\n<\/span>\u6d4f\u89c8\u5668\u8bbf\u95ee<\/span><\/h2>\n\n\n\n<\/figure>\n","protected":false},"excerpt":{"rendered":"\u524d\u9762\u6211\u4eec\u5199\u4e86 \u516c\u53f8OA\u9879\u76ee\u670d\u52a1\u5668\u914d\u7f6e\u6ce8\u610f\u70b9 \uff0c\u8feb\u4e8e\u516c\u53f8\u7684\u7cfb\u7edf\u53ea\u6709\u73b0\u6210apache\u7684rewirte\u89c4\u5219\uff0c\u800c\u4e14\u6211\u5bf9 […]<\/p>\n","protected":false},"author":1,"featured_media":45862,"comment_status":"open","ping_status":"closed","sticky":false,"template":"single-with-sidebar","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[42,260,13,61,167],"aioseo_notices":[],"_links":{"self":[{"href":"http:\/\/www.xyryd.com\/wp-json\/wp\/v2\/posts\/46393"}],"collection":[{"href":"http:\/\/www.xyryd.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.xyryd.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.xyryd.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.xyryd.com\/wp-json\/wp\/v2\/comments?post=46393"}],"version-history":[{"count":0,"href":"http:\/\/www.xyryd.com\/wp-json\/wp\/v2\/posts\/46393\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/www.xyryd.com\/wp-json\/wp\/v2\/media\/45862"}],"wp:attachment":[{"href":"http:\/\/www.xyryd.com\/wp-json\/wp\/v2\/media?parent=46393"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.xyryd.com\/wp-json\/wp\/v2\/categories?post=46393"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.xyryd.com\/wp-json\/wp\/v2\/tags?post=46393"}],"curies":[{"name":"wp","href":"http:\/\/api.w.org\/{rel}","templated":true}]}}
\u524d\u9762\u6211\u4eec\u5199\u4e86 \u516c\u53f8OA\u9879\u76ee\u670d\u52a1\u5668\u914d\u7f6e\u6ce8\u610f\u70b9 \uff0c\u8feb\u4e8e\u516c\u53f8\u7684\u7cfb\u7edf\u53ea\u6709\u73b0\u6210apache\u7684rewirte\u89c4\u5219\uff0c\u800c\u4e14\u6211\u5bf9 […]<\/p>\n","protected":false},"author":1,"featured_media":45862,"comment_status":"open","ping_status":"closed","sticky":false,"template":"single-with-sidebar","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[42,260,13,61,167],"aioseo_notices":[],"_links":{"self":[{"href":"http:\/\/www.xyryd.com\/wp-json\/wp\/v2\/posts\/46393"}],"collection":[{"href":"http:\/\/www.xyryd.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.xyryd.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.xyryd.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.xyryd.com\/wp-json\/wp\/v2\/comments?post=46393"}],"version-history":[{"count":0,"href":"http:\/\/www.xyryd.com\/wp-json\/wp\/v2\/posts\/46393\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/www.xyryd.com\/wp-json\/wp\/v2\/media\/45862"}],"wp:attachment":[{"href":"http:\/\/www.xyryd.com\/wp-json\/wp\/v2\/media?parent=46393"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.xyryd.com\/wp-json\/wp\/v2\/categories?post=46393"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.xyryd.com\/wp-json\/wp\/v2\/tags?post=46393"}],"curies":[{"name":"wp","href":"http:\/\/api.w.org\/{rel}","templated":true}]}}