一个关于nginx location的问题
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
页:
[1]