{"id":14374,"date":"2023-08-07T15:31:11","date_gmt":"2023-08-07T07:31:11","guid":{"rendered":"https:\/\/blog.ywdevops.cn\/?p=14374"},"modified":"2023-08-08T14:03:50","modified_gmt":"2023-08-08T06:03:50","slug":"root-2","status":"publish","type":"post","link":"https:\/\/blog.ywdevops.cn\/index.php\/2023\/08\/07\/root-2\/","title":{"rendered":"Nginx\u4e2droot\u548calias\u7684\u533a\u522b"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Nginx\u5728\u914d\u7f6e\u8bbf\u95ee\u9759\u6001\u9875\u9762\u7684\u65f6\u5019\uff0c\u7ecf\u5e38\u4f7f\u7528root\u548calias\u4e24\u79cd\u65b9\u5f0f\uff0c\u90a3\u4e48\u8fd9\u4e24\u79cd\u65b9\u5f0f\u6709\u4ec0\u4e48\u533a\u522b\u5462\uff1f<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u5982\u679c\u4f7f\u7528root\u6307\u5b9a\uff0c\u90a3\u4e48url\u7684\u8bf7\u6c42\u8def\u5f84\u662f\u8981\u52a0\u5165\u5230root\u6307\u5b9a\u7684\u8def\u5f84\u4e2d<\/li>\n\n\n\n<li>\u5982\u679c\u4f7f\u7528alias\u6307\u5b9a\uff0c\u90a3\u4e48\u8bf7\u6c42\u7684url\u8def\u5f84\u4e0d\u9700\u8981\u52a0\u5165\u5230alias\u6307\u5b9a\u7684\u8def\u5f84\u4e2d\uff0c\u4f46\u662falias\u6307\u5b9a\u7684\u8def\u5f84\u7ed3\u5c3e\u4e00\u5b9a\u8981\u52a0&#8221;\/&#8221;<\/li>\n<\/ul>\n\n\n\n<p class=\"has-text-align-center wp-block-paragraph\"><strong><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-purple-color\">alias\u7528\u6cd5\u4e3e\u4f8b<\/mark><\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">1\u3001\u4e0b\u9762\u5728Nginx\u914d\u7f6e\u6587\u4ef6\u4e2d\u5b9a\u4e49\u8def\u7531\uff0cgroup\u540e\u9762\u6709&#8221;\/&#8221;\uff0c\u5e76\u901a\u8fc7alias\u6307\u5b9a\uff0c\u5982\u56fe\uff1a<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"706\" height=\"128\" src=\"https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2023\/08\/2-3.png\" alt=\"\" class=\"wp-image-14379\" srcset=\"https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2023\/08\/2-3.png 706w, https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2023\/08\/2-3-300x54.png 300w, https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2023\/08\/2-3-600x109.png 600w\" sizes=\"auto, (max-width: 706px) 100vw, 706px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">\u521b\u5efahtml\u76ee\u5f55\uff0c\u5e76\u5b9a\u4e49\u6587\u4ef6index.html\u7684\u5185\u5bb9\uff0c\u5982\u4e0b\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>mkdir -p \/data\/html\necho \"hello, I am an nginx static file\" &gt; index.html<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u6b64\u65f6\u901a\u8fc7IP\u5730\u5740\u8bbf\u95ee\uff0c\u53ef\u4ee5\u770b\u5230\u5df2\u7ecf\u8bbf\u95ee\u6210\u529f\uff0c\u8bf7\u6c42\u7ed3\u679c\u5e76\u6ca1\u52a0\u5165alias\u8def\u5f84\u4e2d\uff0c\u5982\u56fe\uff1a<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"707\" height=\"183\" src=\"https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2023\/08\/3-4.png\" alt=\"\" class=\"wp-image-14381\" srcset=\"https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2023\/08\/3-4.png 707w, https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2023\/08\/3-4-300x78.png 300w, https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2023\/08\/3-4-600x155.png 600w\" sizes=\"auto, (max-width: 707px) 100vw, 707px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">2\u3001\u4fee\u6539\u4e0a\u9762\u7684\u8def\u7531\uff0c\u5c06group\u540e\u9762\u7684&#8221;\/&#8221;\u53bb\u6389\uff0c\u5982\u56fe\uff1a<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"705\" height=\"130\" src=\"https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2023\/08\/4-3.png\" alt=\"\" class=\"wp-image-14384\" srcset=\"https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2023\/08\/4-3.png 705w, https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2023\/08\/4-3-300x55.png 300w, https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2023\/08\/4-3-600x111.png 600w\" sizes=\"auto, (max-width: 705px) 100vw, 705px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">\u518d\u6b21\u8bf7\u6c42\uff0c\u53ef\u4ee5\u53d1\u73b0\u5bf9\u7ed3\u679c\u5e76\u4e0d\u5f71\u54cd\uff0c\u5982\u56fe\uff1a<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"706\" height=\"147\" src=\"https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2023\/08\/5-3.png\" alt=\"\" class=\"wp-image-14385\" srcset=\"https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2023\/08\/5-3.png 706w, https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2023\/08\/5-3-300x62.png 300w, https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2023\/08\/5-3-600x125.png 600w\" sizes=\"auto, (max-width: 706px) 100vw, 706px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">\u56e0\u6b64\uff0c\u65e0\u8bbagroup\u540e\u9762\u6709\u6ca1\u6709&#8221;\/&#8221;\uff0c\u6216\u8005\u5b9a\u4e49\u4e3a\/group\/abc\/def\uff0c\u5bf9\u7ed3\u679c\u90fd\u6ca1\u6709\u5f71\u54cd\uff0c\u56e0\u4e3a\u8bf7\u6c42\u7684\u8def\u7531\u4e0d\u4f1a\u52a0\u5165\u5230alias\u6307\u5b9a\u8def\u5f84\u4e2d<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">3\u3001\u4fee\u6539\u4e0a\u8ff0\u8def\u7531\uff0c\u6dfb\u52a0\u4e00\u4e2aabcd.html\uff0c\u5e76\u5728\/data\/html\u4e0b\u8ffd\u52a0\u6587\u4ef6abcd.html\uff0c\u5185\u5bb9\u5982\u4e0b\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>echo \"hello, My name is abcd, I am an file\" &gt; abcd.html<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"706\" height=\"124\" src=\"https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2023\/08\/7-3.png\" alt=\"\" class=\"wp-image-14391\" srcset=\"https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2023\/08\/7-3.png 706w, https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2023\/08\/7-3-300x53.png 300w, https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2023\/08\/7-3-600x105.png 600w\" sizes=\"auto, (max-width: 706px) 100vw, 706px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">\u6b64\u65f6\u901a\u8fc7Nginx\u6765\u8bbf\u95ee\uff0c\u9ed8\u8ba4\u8fd8\u662f\u8bbf\u95ee\u5230\/data\/html\/index.html\uff0c\u5982\u679c\u8981\u60f3\u8bbf\u95ee\u5230abcd.html\uff0c\u90a3\u4e48\u5c31\u9700\u8981\u5c06index.html\u5220\u9664\uff0c\u6211\u4eec\u8fd9\u91cc\u5c06index.html\u6539\u4e3aindex.html.bak\uff0c\u7136\u540e\u518d\u6b21\u8bf7\u6c42\uff0c\u5982\u56fe\uff1a<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"705\" height=\"154\" src=\"https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2023\/08\/6-3.png\" alt=\"\" class=\"wp-image-14389\" srcset=\"https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2023\/08\/6-3.png 705w, https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2023\/08\/6-3-300x66.png 300w, https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2023\/08\/6-3-600x131.png 600w\" sizes=\"auto, (max-width: 705px) 100vw, 705px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">4\u3001\u8def\u7531\u6587\u4ef6\u914d\u7f6e\u4e0d\u53d8\uff0c\u5728\/data\/html\u4e0b\u65b0\u589e\u76ee\u5f55abcd\/def\uff0c\u4ee5\u53caindex.html\uff0c\u5982\u56fe\uff1a<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"707\" height=\"126\" src=\"https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2023\/08\/12-1.png\" alt=\"\" class=\"wp-image-14403\" srcset=\"https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2023\/08\/12-1.png 707w, https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2023\/08\/12-1-300x53.png 300w, https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2023\/08\/12-1-600x107.png 600w\" sizes=\"auto, (max-width: 707px) 100vw, 707px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"706\" height=\"150\" src=\"https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2023\/08\/11-2.png\" alt=\"\" class=\"wp-image-14402\" srcset=\"https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2023\/08\/11-2.png 706w, https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2023\/08\/11-2-300x64.png 300w, https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2023\/08\/11-2-600x127.png 600w\" sizes=\"auto, (max-width: 706px) 100vw, 706px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">\u5728\u8def\u7531\u540e\u52a0\u4e0a\u65b0\u589e\u7684\u8def\u5f84\u6765\u8bf7\u6c42\uff0c\u53ef\u4ee5\u770b\u5230\u80fd\u8bf7\u6c42\u5230\u5185\u5bb9\uff0c\u5982\u56fe\uff1a<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"705\" height=\"138\" src=\"https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2023\/08\/13.png\" alt=\"\" class=\"wp-image-14404\" srcset=\"https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2023\/08\/13.png 705w, https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2023\/08\/13-300x59.png 300w, https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2023\/08\/13-600x117.png 600w\" sizes=\"auto, (max-width: 705px) 100vw, 705px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">5\u3001\u4e0b\u9762\u770b\u4e00\u4e2aalias\u914d\u5408\u6b63\u5219\u4f7f\u7528\u7684\u6848\u4f8b\uff0c\u5982\u56fe\uff1a<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"706\" height=\"128\" src=\"https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2023\/08\/1-3.png\" alt=\"\" class=\"wp-image-14412\" srcset=\"https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2023\/08\/1-3.png 706w, https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2023\/08\/1-3-300x54.png 300w, https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2023\/08\/1-3-600x109.png 600w\" sizes=\"auto, (max-width: 706px) 100vw, 706px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">\u4e0a\u56fe\u4e2d\u7684\u6b63\u5219\u4e3a\u5339\u914d\u4efb\u610f\u4e00\u4e2a\u5b57\u7b26\u96f6\u6b21\u6216\u591a\u6b21\uff0c$1\u5219\u662f\u6355\u83b7\u6b63\u5219\u4e2d\u7684\u5185\u5bb9\uff0c\u53ef\u4ee5\u7b80\u5355\u7406\u89e3\u4e3a$1\u5bf9\u5e94\u7684\u5c31\u662f\u7b2c\u4e00\u4e2a\u62ec\u53f7\u4e2d\u7684\u5185\u5bb9\uff0c\u5982\u679c\u540e\u9762\u8fd8\u6709\u62ec\u53f7\uff0c\u90a3\u4e48\u60f3\u8981\u6355\u83b7\u5c31\u662f$2<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u6b64\u65f6\u901a\u8fc7http:\/\/ip\/group\/abcd\u8bf7\u6c42\uff0c\u90a3\u4e48$1\u7684\u503c\u5c06\u4f1a\u53d8\u4e3aabcd\uff0c\u5982\u56fe\uff1a<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"706\" height=\"136\" src=\"https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2023\/08\/2-4.png\" alt=\"\" class=\"wp-image-14414\" srcset=\"https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2023\/08\/2-4.png 706w, https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2023\/08\/2-4-300x58.png 300w, https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2023\/08\/2-4-600x116.png 600w\" sizes=\"auto, (max-width: 706px) 100vw, 706px\" \/><\/figure>\n\n\n\n<p class=\"has-luminous-vivid-amber-background-color has-background wp-block-paragraph\">\u6ce8\u610f\uff1aalias\u53ea\u80fd\u7528\u4e8e\u6307\u5b9a\u76ee\u5f55\uff0c\u4e0d\u80fd\u6307\u5b9a\u6587\u4ef6\uff0c\u5426\u5219\u8bf7\u6c42\u4f1a\u62a5\u9519<\/p>\n\n\n\n<p class=\"has-text-align-center wp-block-paragraph\"><strong><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-vivid-purple-color\">root\u7528\u6cd5\u4e3e\u4f8b<\/mark><\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">1\u3001\u4fee\u6539\u4e0a\u8ff0\u8def\u5f84\uff0c\u5c06alias\u6539\u4e3aroot\uff0c\u5982\u679c\u76f4\u63a5\u8bbf\u95ee\u5c06\u4f1a\u62a5\u9519\uff0c\u5982\u56fe\uff1a<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"706\" height=\"109\" src=\"https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2023\/08\/8-3.png\" alt=\"\" class=\"wp-image-14400\" srcset=\"https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2023\/08\/8-3.png 706w, https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2023\/08\/8-3-300x46.png 300w, https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2023\/08\/8-3-600x93.png 600w\" sizes=\"auto, (max-width: 706px) 100vw, 706px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"705\" height=\"221\" src=\"https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2023\/08\/9-2.png\" alt=\"\" class=\"wp-image-14396\" srcset=\"https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2023\/08\/9-2.png 705w, https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2023\/08\/9-2-300x94.png 300w, https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2023\/08\/9-2-600x188.png 600w\" sizes=\"auto, (max-width: 705px) 100vw, 705px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">\u4e0a\u9762\u6211\u4eec\u8bf4\u8fc7\u4f7f\u7528root\u6307\u5b9a\u8def\u5f84\u540e\uff0clocation\u4e2d\u7684\u8def\u7531\u662f\u4f1a\u52a0\u5165\u5230\u8def\u5f84\u4e2d\u7684\uff0c\u56e0\u6b64\uff0c\u6211\u4eec\u5728\/data\/html\u76ee\u5f55\u4e0b\u521b\u5efagroup\u76ee\u5f55\uff0c\u5e76\u5728group\u4e2d\u5b9a\u4e49index.html\uff0c\u5185\u5bb9\u5982\u4e0b\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>hello, I am an nginx static file, in group<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u91cd\u65b0\u52a0\u8f7d\u914d\u7f6e\u6587\u4ef6\u540e\uff0c\u8bbf\u95ee\u7ed3\u679c\u5982\u56fe\uff1a<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"707\" height=\"140\" src=\"https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2023\/08\/10-2.png\" alt=\"\" class=\"wp-image-14398\" srcset=\"https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2023\/08\/10-2.png 707w, https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2023\/08\/10-2-300x59.png 300w, https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2023\/08\/10-2-600x119.png 600w\" sizes=\"auto, (max-width: 707px) 100vw, 707px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">2\u3001\u4fee\u6539\u4e0a\u9762\u7684\u8def\u7531\uff0c\u589e\u52a0abcd.html\uff0c\u5982\u56fe\uff1a<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"707\" height=\"130\" src=\"https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2023\/08\/14.png\" alt=\"\" class=\"wp-image-14406\" srcset=\"https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2023\/08\/14.png 707w, https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2023\/08\/14-300x55.png 300w, https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2023\/08\/14-600x110.png 600w\" sizes=\"auto, (max-width: 707px) 100vw, 707px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">\u6b64\u65f6\u8bf7\u6c42\u7684\u65f6\u5019\u5b9e\u9645\u662f\u5c06\/group\/abcd.html\u8ffd\u52a0\u5230root\u8def\u5f84\u540e\u7684\uff0c\u56e0\u6b64\u9700\u8981\u5728group\u4e2d\u521b\u5efaabcd.html\u6587\u4ef6\uff0c\u5185\u5bb9\u4e3a\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>hello, My name is abcd.html, in group<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u518d\u6b21\u901a\u8fc7\u6d4f\u89c8\u5668\u8bf7\u6c42\uff0c\u53ef\u4ee5\u83b7\u53d6\u5230\u5185\u5bb9\uff0c\u5982\u56fe\uff1a<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"706\" height=\"179\" src=\"https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2023\/08\/15.png\" alt=\"\" class=\"wp-image-14409\" srcset=\"https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2023\/08\/15.png 706w, https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2023\/08\/15-300x76.png 300w, https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2023\/08\/15-600x152.png 600w\" sizes=\"auto, (max-width: 706px) 100vw, 706px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">3\u3001\u4fee\u6539\u4e0a\u9762\u8def\u7531\uff0c\u901a\u8fc7\u6b63\u5219\u65b9\u5f0f\u5339\u914dgroup[0-9]\uff0c\u5982\u56fe\uff1a<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"706\" height=\"116\" src=\"https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2023\/08\/3-6.png\" alt=\"\" class=\"wp-image-14416\" srcset=\"https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2023\/08\/3-6.png 706w, https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2023\/08\/3-6-300x49.png 300w, https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2023\/08\/3-6-600x99.png 600w\" sizes=\"auto, (max-width: 706px) 100vw, 706px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">\u6b64\u65f6\u901a\u8fc7\u6d4f\u89c8\u5668\u8bf7\u6c42\/group0\u3001\/group1\u3001\/group2\u5c06\u4f1a\u5339\u914d\u5230\/data\/html\/group0\u3001\/data\/html\/group1\u3001\/data\/html\/group2\uff0c\u5982\u56fe\uff1a<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"705\" height=\"123\" src=\"https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2023\/08\/4-4.png\" alt=\"\" class=\"wp-image-14418\" srcset=\"https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2023\/08\/4-4.png 705w, https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2023\/08\/4-4-300x52.png 300w, https:\/\/blog.ywdevops.cn\/wp-content\/uploads\/2023\/08\/4-4-600x105.png 600w\" sizes=\"auto, (max-width: 705px) 100vw, 705px\" \/><\/figure>\n\n\n\n<p class=\"has-luminous-vivid-amber-background-color has-background wp-block-paragraph\">\u6ce8\u610f\uff1a\/data\/html\u4e0b\u9700\u8981\u6709group0\u3001group1\u7b49\u76ee\u5f55\u624d\u53ef\u4ee5\uff0c\u5426\u5219\u4f1a\u62a5\u9519<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Nginx\u5728\u914d\u7f6e\u8bbf\u95ee\u9759\u6001\u9875\u9762\u7684\u65f6\u5019\uff0c\u7ecf\u5e38\u4f7f\u7528root\u548calias\u4e24\u79cd\u65b9\u5f0f\uff0c\u90a3\u4e48\u8fd9\u4e24\u79cd\u65b9\u5f0f\u6709\u4ec0\u4e48\u533a\u522b\u5462\uff1f ali [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":14375,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[34],"tags":[],"class_list":["post-14374","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-linux"],"blocksy_meta":{"styles_descriptor":{"styles":{"desktop":"","tablet":"","mobile":""},"google_fonts":[],"version":8}},"_links":{"self":[{"href":"https:\/\/blog.ywdevops.cn\/index.php\/wp-json\/wp\/v2\/posts\/14374","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.ywdevops.cn\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.ywdevops.cn\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.ywdevops.cn\/index.php\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.ywdevops.cn\/index.php\/wp-json\/wp\/v2\/comments?post=14374"}],"version-history":[{"count":22,"href":"https:\/\/blog.ywdevops.cn\/index.php\/wp-json\/wp\/v2\/posts\/14374\/revisions"}],"predecessor-version":[{"id":14419,"href":"https:\/\/blog.ywdevops.cn\/index.php\/wp-json\/wp\/v2\/posts\/14374\/revisions\/14419"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blog.ywdevops.cn\/index.php\/wp-json\/wp\/v2\/media\/14375"}],"wp:attachment":[{"href":"https:\/\/blog.ywdevops.cn\/index.php\/wp-json\/wp\/v2\/media?parent=14374"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.ywdevops.cn\/index.php\/wp-json\/wp\/v2\/categories?post=14374"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.ywdevops.cn\/index.php\/wp-json\/wp\/v2\/tags?post=14374"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}