天天看點

windows的程式大小寫linux下不相容解決方案(轉載)

嘗試了多個方案就春哥的lua靠譜

再編譯nginx加上2個子產品

--add-module=../lua-nginx-module-0.9.2--add-module=../ngx_devel_kit-0.2.19

vhost裡加下面的配置

location /{if($uri ~[A-Z]){  

             rewrite_by_lua 'return ngx.redirect(string.lower(ngx.var.uri),ngx.HTTP_MOVED_PERMANENTLY)';}

}

常見錯誤

# /usr/local/nginx-1.4.2/sbin/nginx -v

./objs/nginx: error while loading shared libraries: libluajit-5.1.so.2: cannot open shared object file: No such file or directory

解決方法:

# ln -s /usr/local/lib/libluajit-5.1.so.2 /lib64/libluajit-5.1.so.2

http://www.ttlsa.com/nginx/nginx-modules-ngx_lua/

<a href="http://down.51cto.com/data/2364309" target="_blank">附件:http://down.51cto.com/data/2364309</a>

本文轉自 liang3391 51CTO部落格,原文連結:http://blog.51cto.com/liang3391/1396291

上一篇: mysql cluster
下一篇: 雜項備忘