反向代理跳过备案

安装宝塔

降级

删除登录

#PROXY-START/
location  ~* \.(gif|png|jpg|css|js|woff|woff2)$
{
    proxy_pass http://ip:端口;
    #proxy_set_header Host $host;
    #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;
    #expires 12h;
}
location /
{
    proxy_pass http://ip:端口;
    #proxy_set_header Host $host;
   # 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;
    #Set Nginx Cache
    #   add_header Cache-Control no-cache;
}

#PROXY-END/
暂无评论

发送评论 编辑评论


				
上一篇
下一篇