raymond9zhou / frps-nginx-https Goto Github PK
View Code? Open in Web Editor NEWnginx反代frps实现https的模板配置文件
Home Page: https://blog.ray8.cc/archives/frpc-frps-nginx-real-ip-https-rewrite-ssl-cert-pure-code.html
License: MIT License
nginx反代frps实现https的模板配置文件
Home Page: https://blog.ray8.cc/archives/frpc-frps-nginx-real-ip-https-rewrite-ssl-cert-pure-code.html
License: MIT License
if ($server_port !~ 443){ #用于80端口自动跳转到HTTPS
rewrite ^(/.*)$ https://$host$1 permanent;
}
一直在使用你的配置模板通过服务器 nginx 实现 https 到内网 http 的访问,发现一般的静态链接没有什么问题,最近发现想要访问内网安装的 openwrt web 控制台会出现:redirected you too many times. 报错。
同样的问题出现在尝试转发内网 esxi 的web 页面。
看起来像是一直在尝试跳转到新的页面但是服务器转发的 location 没有被修改导致无线跳转。
自己不太懂,请教下怎么处理这个问题呢。
下面是我的 nginx 转发配置:
location / {
proxy_pass http://127.0.0.1:6002;
proxy_redirect off;
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 X-Forwarded-Proto $scheme;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_http_version 1.1;
}
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.