FRP 共享 80 端口

共享 80 端口

[lightbox title="共享 80 端口"]

001-1-FRP共享80端口-1

[/lightbox]

服务端

frps 最新版 20240629 版配置 frps.toml

vhosthttpport = 2480
vhosthttpsport = 2443

[lightbox title="frps.toml"]

frps01-FRP共享80端口-2

[/lightbox]

ng 配置 nginx.conf

#端口共享开始 
    server 
    {
listen 80; 
location / { 
proxy_pass http://127.0.0.1:2480;
proxy_redirect http://$host/ http://$http_host/;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $host;
} 
}
#端口共享结束

[lightbox title="nginx.conf"]

frps04ng-FRP共享80端口-3

[/lightbox]

客户端 frpc

frpc 配置

[[proxies]]
name = "web1_http"
type = "http"
localPort = 80
customDomains = ["wp.xnwmw.cn"]

[lightbox title="frpc 配置"]

frpc01-FRP共享80端口-4

[/lightbox]

 

阅读剩余
提示:本文最后更新于 2024-06-29,如有错误或者已经失效,请留言告知。
THE END
本站已运行