欧美一区2区三区4区公司二百,国产精品婷婷午夜在线观看,自拍偷拍亚洲精品,国产美女诱惑一区二区

歡迎來到云服務(wù)器

服務(wù)器租用

nginx 規(guī)則錯誤 directive “rewrite” is not terminated by

遭遇問題:directive “rewrite” is not terminated by “;”

用vi編輯器編輯完nginx.conf文件后生存,,在shell下執(zhí)行呼吁/usr/local/web/nginx/sbin/nginx -t用以查抄nginx.conf設(shè)置文件是否正確(假設(shè)nginx被編譯到/usr/local/web/nginx/)正確的話:

[[email protected]]# /usr/local/web/nginx/sbin/nginx -tthe configuration file /usr/local/web/nginx/conf/nginx.conf syntax is okconfiguration file /usr/local/web/nginx/conf/nginx.conf test is successful

假如呈現(xiàn)如下問題:directive “rewrite” is not terminated by “;”

[[email protected]]# /usr/local/web/nginx/sbin/nginx -t[emerg]: directive “rewrite” is not terminated by “;” in /usr/local/web/nginx/conf/nginx.conf:160configuration file /usr/local/web/nginx/conf/nginx.conf test failed

處理懲罰要領(lǐng):將從頭后的url用雙引號引起來!

墮落:rewrite ^/date/([0-9]{6})/?([0-9]+)?/?$ /index.php?action=article&setdate=$1&page=$2 last;正確:rewrite “^/date/([0-9]{6})/?([0-9]+)?/?$” /index.php?action=article&setdate=$1&page=$2 last;

看著那句directive “rewrite” is not terminated by “;”還覺得是沒;呢

騰訊云代理

Copyright © 2003-2021 MFISP.COM. 國外vps服務(wù)器租用 夢飛云服務(wù)器租用 版權(quán)所有 ? 粵ICP備11019662號

主站蜘蛛池模板: 沙洋县| 仁寿县| 莱阳市| 海丰县| 卫辉市| 察雅县| 平罗县| 庆城县| 台东市| 肇州县| 阜平县| 闻喜县| 乌兰县| 义马市| 教育| 麟游县| 孟州市| 黄骅市| 嘉荫县| 新平| 金乡县| 北票市| 从江县| 抚顺县| 仁化县| 滦平县| 澳门| 南雄市| 怀柔区| 卢湾区| 垣曲县| 布尔津县| 临武县| 兴海县| 玛纳斯县| 博乐市| 鄢陵县| 龙江县| 民勤县| 昂仁县| 永定县|