nginx
bug_yym
bug虐我千百遍,我待bug如初恋
展开
-
nginx配置中rewrite中变量判断conditon
译文:http://nginx.org/en/docs/http/ngx_http_rewrite_module.htmlgoogle关键字: nginx variable conditionSyntax:if (condition) { ... }Default:—Context:server, location翻译 2015-07-14 10:09:45 · 1401 阅读 · 0 评论 -
nginx favicon.ico 出现403 forbidden
nginx.conf配置为了允许favicon.ico可以转发,配置如下:location ~ (favicon.ico) { root html;}root html把项目的目录指向到/usr/local/nginx/html 问题出现原因因为nginx的worker线程是以nobody用户运行的,而/usr/local/nginx/html下面文件的访问权限为:MacBook-原创 2015-10-23 15:48:32 · 6301 阅读 · 0 评论 -
nginx rewite指令模块
引言:nginx作为反向代理服务器, 有时候需要修改http请求中的uri;nginx rewrite模块包含的指令breakifreturnrewriterewrite_lognginx rewrite模块简介The ngx_http_rewrite_module module is used to change request URI using regular expression原创 2015-10-27 18:51:47 · 775 阅读 · 0 评论 -
nginx http处理请求入口
nginx http 分phases进行处理; 其中的入口函数为 ngx_http_core_run_phases()#0 ngx_http_core_run_phases (r=0x770670) at src/http/ngx_http_core_module.c:834#1 0x000000000044eaec in ngx_http_handler (r=0x770670) at s原创 2015-12-05 15:29:33 · 875 阅读 · 0 评论