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

歡迎來到云服務器

服務器租用

nginx 規則錯誤 directive “rewrite” is not terminated by

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

用vi編輯器編輯完nginx.conf文件后生存,,在shell下執行呼吁/usr/local/web/nginx/sbin/nginx -t用以查抄nginx.conf設置文件是否正確(假設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

假如呈現如下問題: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

處理懲罰要領:將從頭后的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服務器租用 夢飛云服務器租用 版權所有 ? 粵ICP備11019662號

主站蜘蛛池模板: 邵阳市| 上饶县| 永康市| 武宁县| 界首市| 团风县| 乌拉特前旗| 泗洪县| 文水县| 芜湖市| 朝阳区| 桑日县| 临潭县| 武陟县| 垦利县| 恭城| 扎囊县| 巢湖市| 武宣县| 遂昌县| 增城市| 石景山区| 十堰市| 交城县| 盘山县| 合江县| 丰原市| 通州市| 睢宁县| 建阳市| 南华县| 客服| 英超| 缙云县| 新建县| 绥棱县| 前郭尔| 宝兴县| 天等县| 桦甸市| 乌兰县|