关于FRP和宝塔共存问题
按照我截图就可以了

第二步



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










暂无评论内容