{"id":68192,"date":"2026-01-29T21:17:25","date_gmt":"2026-01-29T13:17:25","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/68192.html"},"modified":"2026-01-29T21:17:25","modified_gmt":"2026-01-29T13:17:25","slug":"%e5%ae%9d%e5%a1%94%e6%9c%8d%e5%8a%a1%e5%99%a8%e8%a2%ab%e7%af%a1%e6%94%b9-nginx-location-%e9%85%8d%e7%bd%ae%e7%9a%84%e5%ae%89%e5%85%a8%e9%a3%8e%e9%99%a9%e5%89%96%e6%9e%90%e4%b8%8e%e4%bf%ae%e5%a4%8d","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/68192.html","title":{"rendered":"\u5b9d\u5854\u670d\u52a1\u5668\u88ab\u7be1\u6539 Nginx Location \u914d\u7f6e\u7684\u5b89\u5168\u98ce\u9669\u5256\u6790\u4e0e\u4fee\u590d\u6307\u5357\uff08\u6d41\u91cf\u52ab\u6301\u3001\u670d\u52a1\u5668\u8d44\u6e90\u6d88\u8017\u3001\u7ad9\u70b9\u529f\u80fd\u5f02\u5e38\u3001\u6eaf\u6e90\u56f0\u96be\uff09"},"content":{"rendered":"<p>\/www\/server\/panel\/vhost\/nginx \u662f \u5b9d\u5854\u9762\u677f&#xff08;BT-Panel&#xff09; \u4e2d\u7528\u4e8e\u5b58\u653e Nginx \u865a\u62df\u4e3b\u673a\u914d\u7f6e\u6587\u4ef6 \u7684\u6838\u5fc3\u76ee\u5f55\u3002\u5b9d\u5854\u9762\u677f\u81ea\u52a8\u751f\u6210\u548c\u7ba1\u7406\u7f51\u7ad9\u914d\u7f6e\u7684\u5730\u65b9\u3002\u5f53\u5728\u5b9d\u5854\u540e\u53f0\u70b9\u51fb \u201c\u7f51\u7ad9\u201d-&gt;\u201c\u6dfb\u52a0\u7ad9\u70b9\u201d \u6216\u4fee\u6539\u7ad9\u70b9\u8bbe\u7f6e\u65f6&#xff0c;\u5b9d\u5854\u5c31\u662f\u5728\u8fd9\u91cc\u5199\u5165\u6216\u4fee\u6539\u914d\u7f6e\u6587\u4ef6\u7684\u3002<br \/>\n<img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/01\/20260129131724-697b5de44c8aa.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<h2>\u670d\u52a1\u5668\u7f51\u7ad9\u8bbf\u95ee\u65f6&#xff0c;\u5168\u90e8\u88ab\u52ab\u6301<\/h2>\n<p>server<br \/>\n<span class=\"token punctuation\">{<\/span><br \/>\n    location ~* \/.*intron.* <span class=\"token punctuation\">{<\/span><br \/>\n   proxy_pass http:\/\/cdnv2.zdink.com<span class=\"token punctuation\">;<\/span><br \/>\n    proxy_set_header Host <span class=\"token variable\">$host<\/span><span class=\"token punctuation\">;<\/span><br \/>\n    proxy_set_header yddnc <span class=\"token variable\">$remote_addr<\/span><span class=\"token punctuation\">;<\/span><br \/>\n    proxy_set_header X-Real-IP <span class=\"token variable\">$remote_addr<\/span><span class=\"token punctuation\">;<\/span><br \/>\n    proxy_set_header X-Forwarded-For <span class=\"token variable\">$proxy_add_x_forwarded_for<\/span><span class=\"token punctuation\">;<\/span><br \/>\n    proxy_set_header REMOTE-HOST <span class=\"token variable\">$remote_addr<\/span><span class=\"token punctuation\">;<\/span><br \/>\n    proxy_set_header Upgrade <span class=\"token variable\">$http_upgrade<\/span><span class=\"token punctuation\">;<\/span><br \/>\n    proxy_http_version <span class=\"token number\">1.1<\/span><span class=\"token punctuation\">;<\/span><br \/>\n    proxy_no_cache <span class=\"token number\">1<\/span><span class=\"token punctuation\">;<\/span><br \/>\n    proxy_cache_bypass <span class=\"token number\">1<\/span><span class=\"token punctuation\">;<\/span><br \/>\n    proxy_connect_timeout 60s<span class=\"token punctuation\">;<\/span><br \/>\n    proxy_read_timeout 60s<span class=\"token punctuation\">;<\/span><br \/>\n    proxy_send_timeout 60s<span class=\"token punctuation\">;<\/span><br \/>\n<span class=\"token punctuation\">}<\/span><br \/>\nlocation ~* \/.*index.*<br \/>\n<span class=\"token punctuation\">{<\/span><br \/>\n    proxy_pass http:\/\/mulub.zdink.com<span class=\"token punctuation\">;<\/span><br \/>\n    proxy_set_header Host mulub.zdink.com<span class=\"token punctuation\">;<\/span><br \/>\n    proxy_set_header X-Real-IP <span class=\"token variable\">$remote_addr<\/span><span class=\"token punctuation\">;<\/span><br \/>\n    proxy_set_header X-Forwarded-For <span class=\"token variable\">$proxy_add_x_forwarded_for<\/span><span class=\"token punctuation\">;<\/span><br \/>\n    proxy_set_header REMOTE-HOST <span class=\"token variable\">$remote_addr<\/span><span class=\"token punctuation\">;<\/span><br \/>\n    proxy_set_header Upgrade <span class=\"token variable\">$http_upgrade<\/span><span class=\"token punctuation\">;<\/span><br \/>\n    proxy_set_header Connection <span class=\"token variable\">$connection_upgrade<\/span><span class=\"token punctuation\">;<\/span><br \/>\n    proxy_http_version <span class=\"token number\">1.1<\/span><span class=\"token punctuation\">;<\/span><br \/>\n    proxy_set_header dd0308 <span class=\"token variable\">$remote_addr<\/span><span class=\"token punctuation\">;<\/span><br \/>\n    proxy_set_header mlurl <span class=\"token string\">&#034;<span class=\"token variable\">$scheme<\/span>:\/\/<span class=\"token variable\">$host<\/span><span class=\"token variable\">$request_uri<\/span>&#034;<\/span><span class=\"token punctuation\">;<\/span><br \/>\n    proxy_cache_bypass <span class=\"token number\">1<\/span><span class=\"token punctuation\">;<\/span><br \/>\n    proxy_no_cache <span class=\"token number\">1<\/span><span class=\"token punctuation\">;<\/span><br \/>\n    expires <span class=\"token number\">0<\/span><span class=\"token punctuation\">;<\/span><br \/>\n    add_header Cache-Control <span class=\"token string\">&#034;no-cache, no-store, must-revalidate&#034;<\/span><span class=\"token punctuation\">;<\/span><br \/>\n    add_header Pragma <span class=\"token string\">&#034;no-cache&#034;<\/span><span class=\"token punctuation\">;<\/span><br \/>\n<span class=\"token punctuation\">}<\/span><br \/>\nlocation ~* \/.*social.* <span class=\"token punctuation\">{<\/span><br \/>\n   proxy_pass http:\/\/cdnv2.zdink.com<span class=\"token punctuation\">;<\/span><br \/>\n    proxy_set_header Host <span class=\"token variable\">$host<\/span><span class=\"token punctuation\">;<\/span><br \/>\n    proxy_set_header yddnc <span class=\"token variable\">$remote_addr<\/span><span class=\"token punctuation\">;<\/span><br \/>\n    proxy_set_header X-Real-IP <span class=\"token variable\">$remote_addr<\/span><span class=\"token punctuation\">;<\/span><br \/>\n    proxy_set_header X-Forwarded-For <span class=\"token variable\">$proxy_add_x_forwarded_for<\/span><span class=\"token punctuation\">;<\/span><br \/>\n    proxy_set_header REMOTE-HOST <span class=\"token variable\">$remote_addr<\/span><span class=\"token punctuation\">;<\/span><br \/>\n    proxy_set_header Upgrade <span class=\"token variable\">$http_upgrade<\/span><span class=\"token punctuation\">;<\/span><br \/>\n    proxy_http_version <span class=\"token number\">1.1<\/span><span class=\"token punctuation\">;<\/span><br \/>\n    proxy_no_cache <span class=\"token number\">1<\/span><span class=\"token punctuation\">;<\/span><br \/>\n    proxy_cache_bypass <span class=\"token number\">1<\/span><span class=\"token punctuation\">;<\/span><br \/>\n    proxy_connect_timeout 60s<span class=\"token punctuation\">;<\/span><br \/>\n    proxy_read_timeout 60s<span class=\"token punctuation\">;<\/span><br \/>\n    proxy_send_timeout 60s<span class=\"token punctuation\">;<\/span><br \/>\n<span class=\"token punctuation\">}<\/span><br \/>\n    location ~ .*<span class=\"token punctuation\">\\\\<\/span>.<span class=\"token punctuation\">(<\/span>js<span class=\"token operator\">|<\/span>css<span class=\"token punctuation\">)<\/span>?$<br \/>\n    <span class=\"token punctuation\">{<\/span><br \/>\n        expires      12h<span class=\"token punctuation\">;<\/span><br \/>\n        error_log \/dev\/null<span class=\"token punctuation\">;<\/span><br \/>\n        access_log \/dev\/null<span class=\"token punctuation\">;<\/span><br \/>\n    <span class=\"token punctuation\">}<\/span><br \/>\n    access_log  \/www\/wwwlogs\/hs.abc.com.log<span class=\"token punctuation\">;<\/span><br \/>\n    error_log  \/www\/wwwlogs\/hs.abc.com.error.log<span class=\"token punctuation\">;<\/span><br \/>\n<span class=\"token punctuation\">}<\/span><\/p>\n<p>location\u53cd\u5411\u4ee3\u7406\u914d\u7f6e\u662f\u5178\u578b\u7684\u670d\u52a1\u5668\u88ab\u6076\u610f\u7be1\u6539\u7684\u75d5\u8ff9&#xff0c;\u9ed1\u5ba2\u6dfb\u52a0\u8fd9\u4e9b\u914d\u7f6e\u4f1a\u5e26\u6765\u6d41\u91cf\u52ab\u6301\u3001\u670d\u52a1\u5668\u8d44\u6e90\u6d88\u8017\u3001\u7ad9\u70b9\u529f\u80fd\u5f02\u5e38\u3001\u6eaf\u6e90\u56f0\u96be\u7b49\u4e00\u7cfb\u5217\u4e25\u91cd\u95ee\u9898&#xff0c;\u751a\u81f3\u4f1a\u5bfc\u81f4\u7ad9\u70b9\u88ab\u641c\u7d22\u5f15\u64ce\u60e9\u7f5a\u3001\u670d\u52a1\u5668\u88ab\u5c01\u7981&#xff0c;\u4e0b\u9762\u5206\u76f4\u63a5\u5371\u5bb3\u548c\u6f5c\u5728\u8fde\u9501\u98ce\u9669\u8be6\u7ec6\u8bf4\u660e&#xff0c;\u540c\u65f6\u4f1a\u8bb2\u8fd9\u4e9b\u914d\u7f6e\u7684\u6076\u610f\u8bbe\u8ba1\u903b\u8f91&#xff1a;<\/p>\n<h4>\u4e00\u3001\u6838\u5fc3\u76f4\u63a5\u5371\u5bb3&#xff1a;URL\u88ab\u52ab\u6301&#xff0c;\u6307\u5b9a\u8bf7\u6c42\u8df3\u8f6c\u5230\u9ed1\u5ba2\u7684\u6076\u610f\u670d\u52a1\u5668<\/h4>\n<p>\u8fd9\u662f\u6700\u76f4\u63a5\u7684\u95ee\u9898&#xff0c;Nginx\u4f1a\u6309\u7167\u914d\u7f6e\u7684\u6b63\u5219\u89c4\u5219&#xff0c;\u5c06\u6240\u6709\u5305\u542bintron\/index\/social\u7684URL\u8bf7\u6c42&#xff0c;\u5168\u90e8\u53cd\u5411\u4ee3\u7406\u5230\u9ed1\u5ba2\u6307\u5b9a\u7684\u4e24\u4e2a\u57df\u540dcdnv2.zdink.com\u548cmulub.zdink.com&#xff08;\u5747\u4e3a\u9ed1\u5ba2\u63a7\u5236\u7684\u6076\u610f\u670d\u52a1\u5668&#xff09;\u3002<\/p>\n<h5>\u5173\u952e\u5339\u914d\u89c4\u5219\u7684\u6076\u610f\u6027&#xff1a;~* \/.*xxx.*<\/h5>\n<p>~*\u8868\u793a\u4e0d\u533a\u5206\u5927\u5c0f\u5199\u7684\u6b63\u5219\u5339\u914d&#xff0c;\/.*xxx.*\u8868\u793aURL\u4e2d\u4efb\u610f\u4f4d\u7f6e\u5305\u542b\u8be5\u5173\u952e\u8bcd\u5373\u5339\u914d&#xff0c;\u8986\u76d6\u8303\u56f4\u6781\u5e7f&#xff1a;<\/p>\n<ul>\n<li>\u6bd4\u5982\u4f60\u7684\u6b63\u5e38\u8bf7\u6c42https:\/\/hs.com\/index.php\u3001\/admin\/index.html\u3001\/api\/social\/getInfo\u3001\/test\/Intron_123.jpg&#xff0c;\u751a\u81f3\u5e26\u53c2\u6570\u7684\/page?a&#061;index&#xff0c;\u90fd\u4f1a\u88ab\u52ab\u6301&#xff1b;<\/li>\n<li>\u5c24\u5176\u662findex\u5173\u952e\u8bcd&#xff0c;\u51e0\u4e4e\u6240\u6709\u7f51\u7ad9\u7684\u9996\u9875\u3001\u6838\u5fc3\u9875\u9762\u90fd\u4f1a\u5305\u542b&#xff0c;\u76f8\u5f53\u4e8e\u7ad9\u70b9\u6838\u5fc3\u52a8\u6001\u8bf7\u6c42\u88ab\u5168\u90e8\u52ab\u6301\u3002<\/li>\n<\/ul>\n<h5>\u4e0d\u540c\u4ee3\u7406\u89c4\u5219\u7684\u6076\u610f\u76ee\u7684<\/h5>\n<li>intron\/social\u4ee3\u7406\u5230cdnv2.zdink.com&#xff1a;\u9ed1\u5ba2\u5927\u6982\u7387\u662f\u5c06\u4f60\u7684\u7ad9\u70b9\u4f5c\u4e3a\u6d41\u91cf\u4e2d\u8f6c\u8282\u70b9&#xff0c;\u5229\u7528\u4f60\u7684\u670d\u52a1\u5668IP\u548c\u57df\u540d\u8f6c\u53d1\u8bf7\u6c42\u5230\u5176\u6076\u610f\u670d\u52a1\u5668&#xff0c;\u9690\u85cf\u5176\u771f\u5b9e\u6e90\u7ad9&#xff1b;<\/li>\n<li>index\u4ee3\u7406\u5230mulub.zdink.com&#xff1a;\u8fd9\u662f\u6838\u5fc3\u52ab\u6301\u89c4\u5219&#xff0c;\u9ed1\u5ba2\u901a\u8fc7mlurl\u5934\u628a\u4f60\u7ad9\u70b9\u7684\u5b8c\u6574\u8bf7\u6c42URL\u4f20\u9012\u7ed9\u6076\u610f\u670d\u52a1\u5668&#xff0c;\u540c\u65f6\u7981\u6b62\u7f13\u5b58\u786e\u4fdd\u6bcf\u6b21\u90fd\u8f6c\u53d1&#xff0c;\u76ee\u7684\u53ef\u80fd\u662f&#xff1a;\n<ul>\n<li>\u7a83\u53d6\u4f60\u7ad9\u70b9\u7684\u7528\u6237\u8bf7\u6c42\u6570\u636e&#xff08;\u5982\u7528\u6237IP\u3001\u8bbf\u95ee\u7684\u9875\u9762\u3001\u643a\u5e26\u7684\u53c2\u6570&#xff09;&#xff1b;<\/li>\n<li>\u8ba9\u7528\u6237\u8bbf\u95ee\u4f60\u57df\u540d\u65f6&#xff0c;\u5b9e\u9645\u52a0\u8f7d\u9ed1\u5ba2\u670d\u52a1\u5668\u7684\u6076\u610f\u5185\u5bb9&#xff08;\u5982\u9493\u9c7c\u9875\u9762\u3001\u6076\u610f\u5e7f\u544a\u3001\u8fdd\u6cd5\u4fe1\u606f&#xff09;&#xff1b;<\/li>\n<li>\u5229\u7528\u4f60\u7684\u6b63\u89c4\u57df\u540d\u505a\u9ed1\u4ea7\u5f15\u6d41&#xff08;\u641c\u7d22\u5f15\u64ce\u5bf9\u6b63\u89c4\u57df\u540d\u7684\u4fe1\u4efb\u5ea6\u66f4\u9ad8&#xff09;\u3002<\/li>\n<\/ul>\n<\/li>\n<h4>\u4e8c\u3001\u670d\u52a1\u5668\u8d44\u6e90\u88ab\u6076\u610f\u6d88\u8017&#xff0c;\u6027\u80fd\u66b4\u8dcc\u751a\u81f3\u5b95\u673a<\/h4>\n<p>\u53cd\u5411\u4ee3\u7406\u672c\u8eab\u4f1a\u6d88\u8017\u670d\u52a1\u5668\u7684CPU\u3001\u5185\u5b58\u3001\u7f51\u7edc\u5e26\u5bbd&#xff0c;\u800c\u9ed1\u5ba2\u7684\u914d\u7f6e\u662f\u65e0\u9650\u5236\u3001\u65e0\u7f13\u5b58\u7684\u6076\u610f\u8bbe\u8ba1&#xff0c;\u4f1a\u8ba9\u670d\u52a1\u5668\u8d44\u6e90\u88ab\u5feb\u901f\u8017\u5c3d&#xff1a;<\/p>\n<li>\u7981\u7528\u6240\u6709\u7f13\u5b58&#xff1a;proxy_no_cache 1&#043;proxy_cache_bypass 1&#xff0c;\u5bfc\u81f4\u6bcf\u6b21\u8bf7\u6c42\u90fd\u8981\u5efa\u7acb\u65b0\u7684\u4ee3\u7406\u8fde\u63a5&#xff0c;\u91cd\u590d\u7684TCP\u63e1\u624b\/SSL\u63e1\u624b\u4f1a\u5927\u91cf\u6d88\u8017CPU\u548c\u7aef\u53e3\u8d44\u6e90&#xff1b;<\/li>\n<li>\u957f\u8d85\u65f6\u65f6\u95f4&#xff1a;proxy_connect_timeout\/read_timeout\/send_timeout 60s&#xff0c;\u82e5\u9ed1\u5ba2\u7684\u6076\u610f\u670d\u52a1\u5668\u54cd\u5e94\u7f13\u6162\/\u6545\u610f\u4e0d\u54cd\u5e94&#xff0c;Nginx\u4f1a\u4e3a\u6bcf\u4e2a\u8bf7\u6c42\u4fdd\u755960\u79d2\u7684\u8fde\u63a5&#xff0c;\u5927\u91cf\u6302\u8d77\u7684\u8fde\u63a5\u4f1a\u5360\u6ee1Nginx\u7684\u5de5\u4f5c\u8fdb\u7a0b&#xff0c;\u5bfc\u81f4\u6b63\u5e38\u8bf7\u6c42\u65e0\u6cd5\u5904\u7406&#xff1b;<\/li>\n<li>\u65e0\u8bf7\u6c42\u9650\u5236&#xff1a;\u914d\u7f6e\u4e2d\u6ca1\u6709\u9650\u6d41\u3001\u8fde\u63a5\u6570\u9650\u5236&#xff0c;\u9ed1\u5ba2\u53ef\u901a\u8fc7\u5237\u91cf\u8ba9\u4f60\u7684\u670d\u52a1\u5668\u5e26\u5bbd\u8dd1\u6ee1&#xff0c;\u751a\u81f3\u89e6\u53d1\u673a\u623f\u7684\u6d41\u91cf\u544a\u8b66\u5bfc\u81f4\u670d\u52a1\u5668\u88ab\u5c01\u7981&#xff1b;<\/li>\n<li>\u9759\u6001\u8d44\u6e90\u4e5f\u4f1a\u88ab\u52ab\u6301&#xff1a;\u6bd4\u5982\u5305\u542bindex\u7684\u56fe\u7247\/index_banner.jpg\u3001JS\u6587\u4ef6\/index.js&#xff0c;\u539f\u672c\u662f\u672c\u5730\u9759\u6001\u8d44\u6e90&#xff0c;\u73b0\u5728\u4f1a\u8d70\u4ee3\u7406&#xff0c;\u6d6a\u8d39\u670d\u52a1\u5668\u5e26\u5bbd\u7684\u540c\u65f6&#xff0c;\u8ba9\u7528\u6237\u8bbf\u95ee\u901f\u5ea6\u66b4\u8dcc\u3002<\/li>\n<h4>\u4e09\u3001\u7ad9\u70b9\u6838\u5fc3\u529f\u80fd\u5f02\u5e38&#xff0c;\u7528\u6237\u65e0\u6cd5\u6b63\u5e38\u8bbf\u95ee<\/h4>\n<p>\u7531\u4e8eindex\u662f\u7f51\u7ad9\u7684\u6838\u5fc3\u5173\u952e\u8bcd&#xff0c;\u51e0\u4e4e\u6240\u6709\u9996\u9875\u3001\u540e\u53f0\u5165\u53e3\u3001\u4e1a\u52a1\u6838\u5fc3\u9875\u9762\u90fd\u4f1a\u88ab\u52ab\u6301&#xff0c;\u76f4\u63a5\u5bfc\u81f4&#xff1a;<\/p>\n<li>\u7528\u6237\u8bbf\u95ee\u9996\u9875\u663e\u793a\u5f02\u5e38&#xff1a;\u8f93\u5165\u4f60\u7684\u57df\u540dhttps:\/\/hs.com&#xff0c;Nginx\u4f1a\u9ed8\u8ba4\u8bbf\u95eeindex.php\/index.html&#xff0c;\u89e6\u53d1location ~* \/.*index.*\u89c4\u5219&#xff0c;\u8df3\u8f6c\u5230\u9ed1\u5ba2\u7684\u6076\u610f\u670d\u52a1\u5668&#xff0c;\u7528\u6237\u770b\u5230\u7684\u4e0d\u662f\u4f60\u7684\u7ad9\u70b9\u5185\u5bb9&#xff0c;\u800c\u662f\u9ed1\u5ba2\u7684\u6076\u610f\u9875\u9762&#xff1b;<\/li>\n<li>\u540e\u53f0\u7ba1\u7406\u7cfb\u7edf\u65e0\u6cd5\u767b\u5f55&#xff1a;\u82e5\u4f60\u7684\u540e\u53f0\u5730\u5740\u662f\/admin\/index.php&#xff0c;\u4f1a\u88ab\u76f4\u63a5\u52ab\u6301&#xff0c;\u4f60\u81ea\u5df1\u4e5f\u65e0\u6cd5\u7ba1\u7406\u7ad9\u70b9&#xff1b;<\/li>\n<li>API\u63a5\u53e3\u5931\u6548&#xff1a;\u82e5\u4f60\u7684API\u5305\u542bsocial\/index&#xff08;\u5982\/api\/index\/getUser\u3001\/api\/social\/share&#xff09;&#xff0c;\u63a5\u53e3\u8bf7\u6c42\u4f1a\u88ab\u8f6c\u53d1\u5230\u9ed1\u5ba2\u670d\u52a1\u5668&#xff0c;\u5bfc\u81f4\u4e1a\u52a1\u903b\u8f91\u5b8c\u5168\u4e2d\u65ad&#xff08;\u5982\u7528\u6237\u767b\u5f55\u3001\u6570\u636e\u67e5\u8be2\u3001\u63d0\u4ea4\u8868\u5355\u5747\u5931\u6548&#xff09;&#xff1b;<\/li>\n<li>404\/502\u9519\u8bef\u9891\u53d1&#xff1a;\u82e5\u9ed1\u5ba2\u7684\u6076\u610f\u670d\u52a1\u5668\u5b95\u673a\/\u88ab\u5c01\u7981&#xff0c;Nginx\u4f1a\u8fd4\u56de502\u7f51\u5173\u9519\u8bef&#xff1b;\u82e5\u4ee3\u7406\u8def\u5f84\u5339\u914d\u5f02\u5e38&#xff0c;\u4f1a\u8fd4\u56de404\u9519\u8bef&#xff0c;\u7528\u6237\u4f53\u9a8c\u6781\u5dee\u3002<\/li>\n<h4>\u56db\u3001\u5b89\u5168\u98ce\u9669\u5347\u7ea7&#xff1a;\u670d\u52a1\u5668\u88ab\u8fdb\u4e00\u6b65\u5165\u4fb5&#xff0c;\u6eaf\u6e90\u56f0\u96be<\/h4>\n<p>\u9ed1\u5ba2\u80fd\u4fee\u6539\u4f60\u7684Nginx\u914d\u7f6e\u6587\u4ef6&#xff0c;\u8bf4\u660e\u670d\u52a1\u5668\u5df2\u7ecf\u5b58\u5728\u9ad8\u5371\u6f0f\u6d1e&#xff0c;\u800c\u8fd9\u4e9b\u4ee3\u7406\u914d\u7f6e\u4f1a\u8fdb\u4e00\u6b65\u63a9\u76d6\u9ed1\u5ba2\u7684\u5165\u4fb5\u75d5\u8ff9&#xff0c;\u8ba9\u6eaf\u6e90\u548c\u4fee\u590d\u53d8\u5f97\u66f4\u56f0\u96be&#xff1a;<\/p>\n<li>\u9ed1\u5ba2\u5df2\u83b7\u53d6\u670d\u52a1\u5668\u7684root\/\u5b9d\u5854\u6743\u9650&#xff1a;Nginx\u914d\u7f6e\u6587\u4ef6\u6240\u5728\u7684\/www\/server\/panel\/vhost\/nginx\/\u76ee\u5f55&#xff0c;\u53ea\u6709root\u7528\u6237\u6216\u5b9d\u5854\u7684www\u7528\u6237\u6709\u5199\u5165\u6743\u9650&#xff0c;\u9ed1\u5ba2\u80fd\u4fee\u6539\u8be5\u6587\u4ef6&#xff0c;\u8bf4\u660e\u4f60\u7684\u670d\u52a1\u5668\u5bc6\u7801&#xff08;\u5b9d\u5854\u9762\u677f\u5bc6\u7801\u3001\u670d\u52a1\u5668root\u5bc6\u7801&#xff09;\u5df2\u88ab\u7834\u89e3&#xff0c;\u6216\u670d\u52a1\u5668\u5b58\u5728\u672a\u4fee\u590d\u7684\u6f0f\u6d1e&#xff08;\u5982PHP\u540e\u95e8\u3001\u5b9d\u5854\u9762\u677f\u65e7\u7248\u672c\u6f0f\u6d1e\u3001\u7b2c\u4e09\u65b9\u7a0b\u5e8f\u6f0f\u6d1e&#xff09;&#xff1b;<\/li>\n<li>\u5229\u7528\u670d\u52a1\u5668\u505a\u9ed1\u4ea7\u4e2d\u8f6c&#xff1a;\u9ed1\u5ba2\u5c06\u4f60\u7684\u670d\u52a1\u5668\u4f5c\u4e3a\u4ee3\u7406\u8282\u70b9&#xff0c;\u8f6c\u53d1\u6076\u610f\u8bf7\u6c42&#xff08;\u5982\u722c\u866b\u3001\u5237\u91cf\u3001\u653b\u51fb\u5176\u4ed6\u7ad9\u70b9&#xff09;&#xff0c;\u670d\u52a1\u5668IP\u4f1a\u88ab\u5217\u5165\u9ed1\u540d\u5355&#xff08;\u5982\u641c\u7d22\u5f15\u64ce\u53cd\u722c\u9ed1\u540d\u5355\u3001\u673a\u623f\u6076\u610fIP\u540d\u5355\u3001\u5b89\u5168\u5382\u5546\u7684\u9ed1\u540d\u5355&#xff09;&#xff0c;\u5bfc\u81f4&#xff1a;\n<ul>\n<li>\u7ad9\u70b9\u88ab\u641c\u7d22\u5f15\u64ce\u964d\u6743\/\u5c01\u7981&#xff0c;\u65e0\u6cd5\u88ab\u6536\u5f55&#xff1b;<\/li>\n<li>\u670d\u52a1\u5668\u65e0\u6cd5\u8bbf\u95ee\u5176\u4ed6\u7ad9\u70b9&#xff08;\u5982\u65e0\u6cd5\u66f4\u65b0\u5b9d\u5854\u3001\u65e0\u6cd5\u5b89\u88c5\u8f6f\u4ef6\u3001\u65e0\u6cd5\u8fde\u63a5\u6570\u636e\u5e93&#xff09;&#xff1b;<\/li>\n<li>\u673a\u623f\u76f4\u63a5\u5c01\u7981\u670d\u52a1\u5668IP&#xff0c;\u5bfc\u81f4\u6240\u6709\u4e1a\u52a1\u4e2d\u65ad&#xff1b;<\/li>\n<\/ul>\n<\/li>\n<li>\u6eaf\u6e90\u56f0\u96be&#xff1a;\u9ed1\u5ba2\u901a\u8fc7\u53cd\u5411\u4ee3\u7406\u9690\u85cf\u5176\u771f\u5b9e\u6e90\u7ad9&#xff0c;\u6240\u6709\u6076\u610f\u884c\u4e3a\u7684\u6eaf\u6e90IP\u90fd\u4f1a\u663e\u793a\u4e3a\u4f60\u7684\u670d\u52a1\u5668IP&#xff0c;\u82e5\u9ed1\u5ba2\u5229\u7528\u4f60\u7684\u670d\u52a1\u5668\u4f20\u64ad\u8fdd\u6cd5\u4fe1\u606f&#xff0c;\u4f60\u4f1a\u627f\u62c5\u76f8\u5e94\u7684\u6cd5\u5f8b\u8d23\u4efb\u3002<\/li>\n<h4>\u4e94\u3001\u989d\u5916\u9690\u85cf\u95ee\u9898&#xff1a;Nginx\u914d\u7f6e\u51b2\u7a81\u4e0e\u89e3\u6790\u5f02\u5e38<\/h4>\n<p>\u9ed1\u5ba2\u6dfb\u52a0\u7684\u914d\u7f6e\u662f\u968f\u610f\u63d2\u5165\u7684&#xff0c;\u6ca1\u6709\u8003\u8651Nginx\u7684location\u5339\u914d\u4f18\u5148\u7ea7&#xff0c;\u53ef\u80fd\u5bfc\u81f4\u539f\u6709\u914d\u7f6e\u88ab\u8986\u76d6&#xff0c;\u5f15\u53d1\u989d\u5916\u7684\u89e3\u6790\u5f02\u5e38&#xff1a;<\/p>\n<li>\u539f\u6709PHP\u89e3\u6790\u89c4\u5219\u5931\u6548&#xff1a;\u4f60\u7684\u914d\u7f6e\u4e2dinclude enable-php-71.conf;\u662f\u5168\u5c40\u7684PHP\u89e3\u6790\u89c4\u5219&#xff0c;\u4f46\u9ed1\u5ba2\u7684location\u6b63\u5219\u5339\u914d\u4f18\u5148\u7ea7\u9ad8\u4e8e\u666e\u901a\u7684PHP\u540e\u7f00\u5339\u914d&#xff0c;\u5bfc\u81f4\u5305\u542b\u5173\u952e\u8bcd\u7684PHP\u6587\u4ef6&#xff08;\u5982index.php&#xff09;\u88ab\u4ee3\u7406&#xff0c;\u800c\u4e0d\u662f\u672c\u5730\u89e3\u6790&#xff1b;<\/li>\n<li>\u9759\u6001\u8d44\u6e90\u7f13\u5b58\u89c4\u5219\u5931\u6548&#xff1a;\u539f\u6709\u914d\u7f6e\u4e2d\u56fe\u7247\/JS\/CSS\u7684\u7f13\u5b58\u89c4\u5219&#xff0c;\u4f1a\u88ab\u9ed1\u5ba2\u7684\u4ee3\u7406\u89c4\u5219\u8986\u76d6&#xff0c;\u5bfc\u81f4\u9759\u6001\u8d44\u6e90\u65e0\u6cd5\u7f13\u5b58&#xff0c;\u8fdb\u4e00\u6b65\u964d\u4f4e\u8bbf\u95ee\u901f\u5ea6&#xff1b;<\/li>\n<li>Nginx\u542f\u52a8\u8b66\u544a\/\u5931\u8d25&#xff1a;\u82e5\u9ed1\u5ba2\u7684\u914d\u7f6e\u5b58\u5728\u8bed\u6cd5\u9519\u8bef&#xff08;\u5982\u5c11\u5206\u53f7\u3001\u5934\u4fe1\u606f\u62fc\u5199\u9519\u8bef&#xff09;&#xff0c;Nginx\u91cd\u542f\u540e\u4f1a\u542f\u52a8\u5931\u8d25&#xff0c;\u5bfc\u81f4\u6574\u4e2a\u7ad9\u70b9\u65e0\u6cd5\u8bbf\u95ee&#xff08;\u9ed1\u5ba2\u53ef\u80fd\u6545\u610f\u7559\u540e\u95e8&#xff0c;\u5728\u9700\u8981\u65f6\u89e6\u53d1&#xff09;\u3002<\/li>\n<h4>\u603b\u7ed3&#xff1a;\u8fd9\u4e09\u6bb5\u914d\u7f6e\u7684\u672c\u8d28\u662f\u300c\u670d\u52a1\u5668\u88ab\u653b\u9677\u540e\u7684\u6076\u610f\u6d41\u91cf\u52ab\u6301\u300d<\/h4>\n<p>\u9ed1\u5ba2\u6dfb\u52a0\u8fd9\u4e9b\u914d\u7f6e\u7684\u6838\u5fc3\u76ee\u7684\u53ea\u6709\u4e09\u4e2a&#xff1a;<\/p>\n<li>\u5229\u7528\u6b63\u89c4\u57df\u540d\u548c\u670d\u52a1\u5668IP\u505a\u9ed1\u4ea7&#xff08;\u5f15\u6d41\u3001\u9493\u9c7c\u3001\u4f20\u64ad\u8fdd\u6cd5\u4fe1\u606f&#xff09;&#xff0c;\u9690\u85cf\u81ea\u8eab\u771f\u5b9e\u6e90\u7ad9&#xff1b;<\/li>\n<li>\u6d88\u8017\u670d\u52a1\u5668\u8d44\u6e90&#xff0c;\u8ba9\u4f60\u7684\u7ad9\u70b9\u65e0\u6cd5\u6b63\u5e38\u8fd0\u884c&#xff0c;\u751a\u81f3\u5b95\u673a&#xff1b;<\/li>\n<li>\u63a9\u76d6\u5165\u4fb5\u75d5\u8ff9&#xff0c;\u5c06\u6076\u610f\u884c\u4e3a\u7684\u6eaf\u6e90\u6307\u5411\u4f60\u7684\u670d\u52a1\u5668&#xff0c;\u540c\u65f6\u5229\u7528\u4ee3\u7406\u89c4\u5219\u8fdb\u4e00\u6b65\u63a7\u5236\u4f60\u7684\u7ad9\u70b9\u3002<\/li>\n<p>\u7d27\u6025\u63d0\u9192&#xff1a;\u76ee\u524d\u4f60\u7684\u670d\u52a1\u5668\u5df2\u5904\u4e8e\u5b8c\u5168\u88ab\u9ed1\u5ba2\u63a7\u5236\u7684\u72b6\u6001&#xff0c;\u4ec5\u5220\u9664\u8fd9\u4e09\u6bb5\u914d\u7f6e\u8fdc\u8fdc\u4e0d\u591f&#xff0c;\u5fc5\u987b\u7acb\u5373\u505a\u5168\u7ef4\u5ea6\u7684\u5b89\u5168\u6392\u67e5\u548c\u4fee\u590d&#xff0c;\u5426\u5219\u9ed1\u5ba2\u4f1a\u518d\u6b21\u7be1\u6539\u914d\u7f6e\u3001\u690d\u5165\u540e\u95e8\u3002<\/p>\n<h4>\u7d27\u6025\u5904\u7406\u6b65\u9aa4&#xff08;\u6838\u5fc3&#xff09;<\/h4>\n<li>\u7acb\u5373\u5220\u9664\u6076\u610f\u914d\u7f6e&#xff1a;\u7f16\u8f91Nginx\u914d\u7f6e\u6587\u4ef6&#xff0c;\u5220\u9664\u8fd9\u4e09\u6bb5location\u4ee3\u7406\u914d\u7f6e&#xff0c;\u4fdd\u5b58\u540e\u6267\u884cnginx -t\u68c0\u67e5\u8bed\u6cd5&#xff0c;\u65e0\u9519\u8bef\u540e\u6267\u884cnginx -s reload\u91cd\u542fNginx&#xff1b;<\/li>\n<li>\u7acb\u5373\u4fee\u6539\u6240\u6709\u5bc6\u7801&#xff1a;\u5b9d\u5854\u9762\u677f\u5bc6\u7801\u3001\u670d\u52a1\u5668root\u5bc6\u7801\u3001\u6570\u636e\u5e93\u5bc6\u7801\u3001\u7ad9\u70b9\u540e\u53f0\u5bc6\u7801&#xff0c;\u5168\u90e8\u4fee\u6539\u4e3a\u590d\u6742\u5bc6\u7801&#xff08;\u5b57\u6bcd&#043;\u6570\u5b57&#043;\u7279\u6b8a\u7b26\u53f7&#xff0c;\u4e0d\u5c11\u4e8e16\u4f4d&#xff09;&#xff1b;<\/li>\n<li>\u68c0\u67e5\u670d\u52a1\u5668\u662f\u5426\u6709\u540e\u95e8&#xff1a;\u6392\u67e5\u7ad9\u70b9\u6839\u76ee\u5f55\u3001\/tmp\u3001\/www\/server\/\u7b49\u76ee\u5f55\u7684\u5f02\u5e38\u6587\u4ef6&#xff08;\u5982\u964c\u751f\u7684.php\/.sh\/.py\u6587\u4ef6&#xff09;&#xff0c;\u6392\u67e5PHP\u540e\u95e8\u3001\u5b9a\u65f6\u4efb\u52a1&#xff08;crontab -l&#xff09;\u3001\u5f00\u673a\u81ea\u542f\u9879&#xff1b;<\/li>\n<li>\u5347\u7ea7\u6240\u6709\u8f6f\u4ef6\u7248\u672c&#xff1a;\u5b9d\u5854\u9762\u677f\u3001PHP\u3001Nginx\u3001MySQL\u7b49\u5168\u90e8\u5347\u7ea7\u5230\u6700\u65b0\u7a33\u5b9a\u7248&#xff0c;\u4fee\u590d\u5df2\u77e5\u6f0f\u6d1e&#xff1b;<\/li>\n<li>\u68c0\u67e5\u9632\u706b\u5899\u914d\u7f6e&#xff1a;\u5173\u95ed\u4e0d\u5fc5\u8981\u7684\u7aef\u53e3&#xff08;\u5982\u9664\u4e8680\/443\/22\u5916\u7684\u6240\u6709\u7aef\u53e3&#xff09;&#xff0c;\u9650\u523622\u7aef\u53e3\u7684\u767b\u5f55IP&#xff08;\u4ec5\u5141\u8bb8\u4f60\u7684\u56fa\u5b9aIP\u767b\u5f55&#xff09;&#xff1b;<\/li>\n<li>\u5907\u4efd\u6570\u636e\u5e76\u6392\u67e5\u5f02\u5e38&#xff1a;\u5907\u4efd\u7ad9\u70b9\u6570\u636e\u548c\u6570\u636e\u5e93&#xff0c;\u68c0\u67e5\u662f\u5426\u6709\u6570\u636e\u88ab\u7be1\u6539\/\u5220\u9664&#xff0c;\u68c0\u67e5\u670d\u52a1\u5668\u7684\u8bbf\u95ee\u65e5\u5fd7\u3001Nginx\u65e5\u5fd7&#xff0c;\u6392\u67e5\u9ed1\u5ba2\u7684\u5165\u4fb5\u75d5\u8ff9&#xff1b;<\/li>\n<li>\u52a0\u56fa\u670d\u52a1\u5668\u6743\u9650&#xff1a;\u4fee\u6539\u7ad9\u70b9\u76ee\u5f55\u3001Nginx\u914d\u7f6e\u76ee\u5f55\u7684\u6743\u9650&#xff0c;\u7981\u6b62\u975eroot\/www\u7528\u6237\u7684\u5199\u5165\u6743\u9650&#xff0c;\u5173\u95edPHP\u7684\u5371\u9669\u51fd\u6570&#xff08;\u5982exec\u3001system\u3001eval&#xff09;\u3002<\/li>\n<hr \/>\n<p>&#064;\u6f0f\u523b\u6709\u65f6<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\/www\/server\/panel\/vhost\/nginx \u662f \u5b9d\u5854\u9762\u677f&#xff08;BT-Panel&#xff09; \u4e2d\u7528\u4e8e\u5b58\u653e Nginx \u865a\u62df\u4e3b\u673a\u914d\u7f6e\u6587\u4ef6 \u7684\u6838\u5fc3\u76ee\u5f55\u3002\u5b9d\u5854\u9762\u677f\u81ea\u52a8\u751f\u6210\u548c\u7ba1\u7406\u7f51\u7ad9\u914d\u7f6e\u7684\u5730\u65b9\u3002\u5f53\u5728\u5b9d\u5854\u540e\u53f0\u70b9\u51fb \u201c\u7f51\u7ad9\u201d-&gt;\u201c\u6dfb\u52a0\u7ad9\u70b9\u201d \u6216\u4fee\u6539\u7ad9\u70b9\u8bbe\u7f6e\u65f6&#xff0c;\u5b9d\u5854\u5c31\u662f\u5728\u8fd9\u91cc\u5199\u5165\u6216\u4fee\u6539\u914d\u7f6e\u6587\u4ef6\u7684\u3002\u670d\u52a1\u5668\u7f51\u7ad9\u8bbf\u95ee\u65f6&#xff0c;\u5168\u90e8\u88ab\u52ab\u6301<br \/>\nserver<br \/>\n{location ~* \/.*intron.* {proxy_pass http:\/\/cdnv<\/p>\n","protected":false},"author":2,"featured_media":68191,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[117,61,43],"topic":[],"class_list":["post-68192","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server","tag-nginx","tag-61","tag-43"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u5b9d\u5854\u670d\u52a1\u5668\u88ab\u7be1\u6539 Nginx Location \u914d\u7f6e\u7684\u5b89\u5168\u98ce\u9669\u5256\u6790\u4e0e\u4fee\u590d\u6307\u5357\uff08\u6d41\u91cf\u52ab\u6301\u3001\u670d\u52a1\u5668\u8d44\u6e90\u6d88\u8017\u3001\u7ad9\u70b9\u529f\u80fd\u5f02\u5e38\u3001\u6eaf\u6e90\u56f0\u96be\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wsisp.com\/helps\/68192.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u5b9d\u5854\u670d\u52a1\u5668\u88ab\u7be1\u6539 Nginx Location \u914d\u7f6e\u7684\u5b89\u5168\u98ce\u9669\u5256\u6790\u4e0e\u4fee\u590d\u6307\u5357\uff08\u6d41\u91cf\u52ab\u6301\u3001\u670d\u52a1\u5668\u8d44\u6e90\u6d88\u8017\u3001\u7ad9\u70b9\u529f\u80fd\u5f02\u5e38\u3001\u6eaf\u6e90\u56f0\u96be\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\/www\/server\/panel\/vhost\/nginx \u662f \u5b9d\u5854\u9762\u677f&#xff08;BT-Panel&#xff09; \u4e2d\u7528\u4e8e\u5b58\u653e Nginx \u865a\u62df\u4e3b\u673a\u914d\u7f6e\u6587\u4ef6 \u7684\u6838\u5fc3\u76ee\u5f55\u3002\u5b9d\u5854\u9762\u677f\u81ea\u52a8\u751f\u6210\u548c\u7ba1\u7406\u7f51\u7ad9\u914d\u7f6e\u7684\u5730\u65b9\u3002\u5f53\u5728\u5b9d\u5854\u540e\u53f0\u70b9\u51fb \u201c\u7f51\u7ad9\u201d-&gt;\u201c\u6dfb\u52a0\u7ad9\u70b9\u201d \u6216\u4fee\u6539\u7ad9\u70b9\u8bbe\u7f6e\u65f6&#xff0c;\u5b9d\u5854\u5c31\u662f\u5728\u8fd9\u91cc\u5199\u5165\u6216\u4fee\u6539\u914d\u7f6e\u6587\u4ef6\u7684\u3002\u670d\u52a1\u5668\u7f51\u7ad9\u8bbf\u95ee\u65f6&#xff0c;\u5168\u90e8\u88ab\u52ab\u6301 server {location ~* \/.*intron.* {proxy_pass http:\/\/cdnv\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/68192.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-01-29T13:17:25+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/01\/20260129131724-697b5de44c8aa.png\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/68192.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/68192.html\",\"name\":\"\u5b9d\u5854\u670d\u52a1\u5668\u88ab\u7be1\u6539 Nginx Location \u914d\u7f6e\u7684\u5b89\u5168\u98ce\u9669\u5256\u6790\u4e0e\u4fee\u590d\u6307\u5357\uff08\u6d41\u91cf\u52ab\u6301\u3001\u670d\u52a1\u5668\u8d44\u6e90\u6d88\u8017\u3001\u7ad9\u70b9\u529f\u80fd\u5f02\u5e38\u3001\u6eaf\u6e90\u56f0\u96be\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-01-29T13:17:25+00:00\",\"dateModified\":\"2026-01-29T13:17:25+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/68192.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/68192.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/68192.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u5b9d\u5854\u670d\u52a1\u5668\u88ab\u7be1\u6539 Nginx Location \u914d\u7f6e\u7684\u5b89\u5168\u98ce\u9669\u5256\u6790\u4e0e\u4fee\u590d\u6307\u5357\uff08\u6d41\u91cf\u52ab\u6301\u3001\u670d\u52a1\u5668\u8d44\u6e90\u6d88\u8017\u3001\u7ad9\u70b9\u529f\u80fd\u5f02\u5e38\u3001\u6eaf\u6e90\u56f0\u96be\uff09\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\u5b9d\u5854\u670d\u52a1\u5668\u88ab\u7be1\u6539 Nginx Location \u914d\u7f6e\u7684\u5b89\u5168\u98ce\u9669\u5256\u6790\u4e0e\u4fee\u590d\u6307\u5357\uff08\u6d41\u91cf\u52ab\u6301\u3001\u670d\u52a1\u5668\u8d44\u6e90\u6d88\u8017\u3001\u7ad9\u70b9\u529f\u80fd\u5f02\u5e38\u3001\u6eaf\u6e90\u56f0\u96be\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wsisp.com\/helps\/68192.html","og_locale":"zh_CN","og_type":"article","og_title":"\u5b9d\u5854\u670d\u52a1\u5668\u88ab\u7be1\u6539 Nginx Location \u914d\u7f6e\u7684\u5b89\u5168\u98ce\u9669\u5256\u6790\u4e0e\u4fee\u590d\u6307\u5357\uff08\u6d41\u91cf\u52ab\u6301\u3001\u670d\u52a1\u5668\u8d44\u6e90\u6d88\u8017\u3001\u7ad9\u70b9\u529f\u80fd\u5f02\u5e38\u3001\u6eaf\u6e90\u56f0\u96be\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\/www\/server\/panel\/vhost\/nginx \u662f \u5b9d\u5854\u9762\u677f&#xff08;BT-Panel&#xff09; \u4e2d\u7528\u4e8e\u5b58\u653e Nginx \u865a\u62df\u4e3b\u673a\u914d\u7f6e\u6587\u4ef6 \u7684\u6838\u5fc3\u76ee\u5f55\u3002\u5b9d\u5854\u9762\u677f\u81ea\u52a8\u751f\u6210\u548c\u7ba1\u7406\u7f51\u7ad9\u914d\u7f6e\u7684\u5730\u65b9\u3002\u5f53\u5728\u5b9d\u5854\u540e\u53f0\u70b9\u51fb \u201c\u7f51\u7ad9\u201d-&gt;\u201c\u6dfb\u52a0\u7ad9\u70b9\u201d \u6216\u4fee\u6539\u7ad9\u70b9\u8bbe\u7f6e\u65f6&#xff0c;\u5b9d\u5854\u5c31\u662f\u5728\u8fd9\u91cc\u5199\u5165\u6216\u4fee\u6539\u914d\u7f6e\u6587\u4ef6\u7684\u3002\u670d\u52a1\u5668\u7f51\u7ad9\u8bbf\u95ee\u65f6&#xff0c;\u5168\u90e8\u88ab\u52ab\u6301 server {location ~* \/.*intron.* {proxy_pass http:\/\/cdnv","og_url":"https:\/\/www.wsisp.com\/helps\/68192.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-01-29T13:17:25+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/01\/20260129131724-697b5de44c8aa.png"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"4 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/68192.html","url":"https:\/\/www.wsisp.com\/helps\/68192.html","name":"\u5b9d\u5854\u670d\u52a1\u5668\u88ab\u7be1\u6539 Nginx Location \u914d\u7f6e\u7684\u5b89\u5168\u98ce\u9669\u5256\u6790\u4e0e\u4fee\u590d\u6307\u5357\uff08\u6d41\u91cf\u52ab\u6301\u3001\u670d\u52a1\u5668\u8d44\u6e90\u6d88\u8017\u3001\u7ad9\u70b9\u529f\u80fd\u5f02\u5e38\u3001\u6eaf\u6e90\u56f0\u96be\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-01-29T13:17:25+00:00","dateModified":"2026-01-29T13:17:25+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/68192.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/68192.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/68192.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"\u5b9d\u5854\u670d\u52a1\u5668\u88ab\u7be1\u6539 Nginx Location \u914d\u7f6e\u7684\u5b89\u5168\u98ce\u9669\u5256\u6790\u4e0e\u4fee\u590d\u6307\u5357\uff08\u6d41\u91cf\u52ab\u6301\u3001\u670d\u52a1\u5668\u8d44\u6e90\u6d88\u8017\u3001\u7ad9\u70b9\u529f\u80fd\u5f02\u5e38\u3001\u6eaf\u6e90\u56f0\u96be\uff09"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/68192","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=68192"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/68192\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/68191"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=68192"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=68192"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=68192"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=68192"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}