我直接使用 Rails 和 Nginx(没有 apache),想知道我的虚拟主机中是否需要以下内容:
# serve static content directly
location ~* \.(ico|jpg|gif|png|css|js|swf|html)$ {
if (-f $request_filename) {
expires max;
break;
}
}
如果我不使用 Apache,它是否相关?
提前致谢。