免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1327 | 回复: 0
打印 上一主题 下一主题

[Web] 一个关于nginx location的问题 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2014-08-16 17:06 |只看该作者 |倒序浏览
        location /images/ {
            log_not_found off;
            expires 3M;
        }
在nginx.conf里面这样写一个location是没有问题的,但是写了一个下面这样的就不行了。

        location ~ ^/images/ {
            log_not_found off;
            expires 3M;
        }
报错信息:Segmentation fault (core dumped)

只要把配置文件里面所有location带正则符号去掉就正常了。不知道location的正则是不是有什么问题?

配置信息:
configure arguments: --prefix=/home/ngx_openresty/nginx --add-module=../ngx_devel_kit-0.2.19 --add-module=../iconv-nginx-module-0.10 --add-module=../ngx_coolkit-0.2rc1 --add-module=../set-misc-nginx-module-0.24 --add-module=../ngx_lua-0.9.7 --add-module=../ngx_lua_upstream-0.02 --add-module=../auth-request-nginx-module-0.2 --with-ld-opt=-Wl,-rpath,/home/ngx_openresty/luajit/lib --without-http_ssi_module --without-http_userid_module --without-http_auth_basic_module --without-http_autoindex_module --without-http_geo_module --without-http_map_module --without-http_split_clients_module --without-http_uwsgi_module --without-http_scgi_module --without-http-cache --with-http_secure_link_module --with-http_stub_status_module --with-pcre-jit --with-pcre=../pcre-8.31
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP