已开启,这是我的NUINX配置
location /
{
expires 0h;
if ($request_uri ~* "(css|png|jpeg|gif|jpg)")
{
expires 1h;
}
if ($request_uri ~* "(php|html|htm|asp|aspx|js|rar|zip)")
{
expires 0h;
}
if ( $request_uri = "/" ) {
rewrite "/" https://www.lkuaiy.com/index.html break;
}
proxy_pass http://这里是IP,我就不显示了:88;
proxy_set_header Host 这里是IP,我就不显示了:88;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header REMOTE-HOST $remote_addr;
add_header X-Cache $upstream_cache_status;
proxy_set_header Accept-Encoding "";
sub_filter_once off;
proxy_cache cache_one;
proxy_cache_key $host$uri$is_args$args;
proxy_cache_valid 200 304 301 302 12h;
} |