nginx使用ngx_http_empty_gif_module模块

左手 posted @ 2013年5月31日 19:26 in 积累点滴 with tags nginx ngx_http_empty_gif_module , 2545 阅读

在nginx官网看到有ngx_http_empty_gif_module这个模块,可以默认输出一个空白的gif,某个png透明的插件要用到这种透明的gif文件,简单看了下,配置方法很简单:

location = /_.gif {
    empty_gif;
}

最开始我本地总是提示File not found.针对php框架的rewrite将这个请求重定向到了php请求,在rewrite最开始添加了一行 rewrite ^/_\.gif$ /_.gif break; 将文件重定向一次OK了

参考链接:
ngx_http_empty_gif_module: http://nginx.org/en/docs/http/ngx_http_empty_gif_module.html

 

Avatar_small
JAC 10th Hindi Quest 说:
2022年9月22日 18:31

JAC 10th Question Paper 2023 Pdf Download for Jharkhand Matric Hindi Model Paper 2023 with Answer Solutions through Mock Test Model Set with Important Questions for theory, objective type multiple choice questions for paper-1 and paper-2 exams. JAC 10th Hindi Question Paper Jharkhand State high school level secondary education class 10th / matric students can download first or second language model question paper with mock test sample question paper to Hindi Medium, English Medium and Urdu medium students (1st language for Hindi Medium students and 2nd language for English & Urdu medium students) to guessing important questions.

Avatar_small
Sbi Online Credit Ca 说:
2023年1月26日 22:40

SBI is one of the largest financial banks in India and it provides credit cards to a lot of users so they eventually understood that users. Owning a credit card is not a minute thing and it becomes a hassle if you are not able to address the payment dues which you can only know. Sbi Online Credit Card Login When you can access your online portal for the credit card through which you know about SBI credit card payment due and when so as to someone can arrange the money required and ensure the proper flow of their finances as well.


登录 *


loading captcha image...
(输入验证码)
or Ctrl+Enter