开发者社区> 问答> 正文

绑定域名出现问题


出现提示  invalid location modifier 是什么意思?

nginx: [emerg] invalid location modifier "~~" in /alidata/server/nginx/conf/vhosts/plczxc.conf:7
nginx: configuration file /alidata/server/nginx/conf/nginx.conf test failed

以下是配置文件
server {
        listen       80;
        server_name  zy.51dll.com;
    index index.html index.htm index.php;
    root /alidata/www/plc-tcms;
    location ~ .*\.(php|php5)?$
    {
        #fastcgi_pass  unix:/tmp/php-cgi.sock;
        fastcgi_pass  127.0.0.1:9000;
        fastcgi_index index.php;
        include fastcgi.conf;
    }
    location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)$
    {
        expires 30d;
    }
    location ~ .*\.(js|css)?$
    {
        expires 1h;
    }
    #伪静态规则
    include /alidata/server/nginx/conf/rewrite/phpwind.conf;
    log_format  plc-tcms  '$remote_addr - $remote_user [$time_local] "$request" '
                  '$status $body_bytes_sent "$http_referer" '
                  '"$http_user_agent" "$http_x_forwarded_for"';
    access_log  /alidata/log/nginx/access/default.log plc-tcms;
}

展开
收起
xiakeweb 2013-08-11 10:41:22 12813 0
5 条回答
写回答
取消 提交回答
  • 2018-07-31 11:17:18
    赞同 展开评论 打赏
  • Re绑定域名出现问题
    引用第3楼小艺于2013-08-12 15:53发表的  :
    nginx: [emerg] invalid location modifier "~~" in /alidata/server/nginx/conf/vhosts/plczxc.conf:7

    提示说的很清楚 多了一个~  去掉重载配置文件进程即可 [url=https://bbs.aliyun.com/job.php?action=topost&tid=144303&pid=421730][/url]



    没想到还有回复,谢谢了

    云服务器搞不明白,后来用虚拟主机了
    2018-07-31 11:10:35
    赞同 展开评论 打赏
  • nginx: [emerg] invalid location modifier "~~" in /alidata/server/nginx/conf/vhosts/plczxc.conf:7

    提示说的很清楚 多了一个~  去掉重载配置文件进程即可
    2013-08-12 15:53:38
    赞同 展开评论 打赏
  • Re绑定域名出现问题
    不清楚,等楼下回答下
    2013-08-11 22:59:50
    赞同 展开评论 打赏
  • Re绑定域名出现问题
    我的也是一样
    2013-08-11 15:25:09
    赞同 展开评论 打赏
问答排行榜
最热
最新

相关电子书

更多
创新改变行业——释放域名生态的力量 立即下载
“域”见更美好的未来——域名筑梦互联网+ 立即下载
“域”感——《域名投资从入门到精通》 立即下载