关于FRP和宝塔共存问题

关于FRP和宝塔共存问题

按照我截图就可以了

20260208162707635-image

第二步

20260208162756809-image

20260208162849630-image

20260208162908367-image

127.0.0.1:3080修改为你的frps端口就可以了

#PROXY-START/

location / 
{
    proxy_pass http://127.0.0.1:3080;
    proxy_set_header X-Real-IP $remote_addr;
    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    proxy_set_header Host $host;
    # proxy_hide_header Upgrade;

    add_header X-Cache $upstream_cache_status;
    #Set Nginx Cache

    set $static_fileWmsemEUe 0;
    if ( $uri ~* "\.(gif|png|jpg|css|js|woff|woff2)$" )
    {
        set $static_fileWmsemEUe 1;
        expires 1m;
    }
    if ( $static_fileWmsemEUe = 0 )
    {
        add_header Cache-Control no-cache;
    }
}
#PROXY-END/

 

© 版权声明
THE END
喜欢就支持一下吧
点赞7 分享
评论 抢沙发

请登录后发表评论

    暂无评论内容