问题描述
情况是这样:我有一个fastcgi后端,它将生成并根据需要评估etags。
对于静态内容,我希望nginx处理etag的创建,但在任何情况下都不能覆盖fastcgi后端为动态内容获取或设置的内容。
我将如何实现?
这是我的nginx.conf的一部分,它描述了如何在static / fastCGI之间处理请求:
# redirect / to index.html,if available otherwise => backend
location ~ ^/$ {
try_files /index.html @backend;
}
# get file if available otherwise => backend
location ~ /.* {
try_files $uri @backend;
}
#backend fcgi setup
location @backend {
fastcgi_pass fastCGI;
fastcgi_keep_conn on;
# ... more stuff ...
}
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)