Comments (3)
拿nginx 举例,如果只穿透https端口,访问80时,会报 状态码:497 HTTP Request Sent to HTTPS Port 发送到HTTPS端口请求
可以设置nginx 自动跳转到https,参考下nginx的配置
server {
listen 443 ssl;
server_name www.xxx.com;
error_page 497 https://$http_host$request_uri; # 重点在这里,只需要一行配置
ssl_certificate /usr/local/nginx/cert/7172296_www.xxx.com.pem;
ssl_certificate_key /usr/local/nginx/cert/7172296_www.xxxx.com.key;
ssl_session_timeout 5m;
ssl_ciphers ECDHE-RSA-AES128-GCM-SHA256:ECDHE:ECDH:AES:HIGH:!NULL:!aNULL:!MD5:!ADH:!RC4;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_prefer_server_ciphers on;
location / {
root html;
index index.html index.htm;
}
error_page 500 502 503 504 /50x.html;
}
from nps.
并不是nginx,而且是用的域名解析的证书,就比如说nps的管理页面就不能自动跳转
from nps.
请教web管理页https怎么配置呀?
- 按照教程配置后提示“此站点的连接不安全 ERR_SSL_PROTOCOL_ERROR”:
- nps.mydomain.com SSL证书已申请并替换
教程:如果web管理需要使用https,可以在配置文件nps.conf中设置web_open_ssl=true,并配置web_cert_file和web_key_file
web_host=nps.mydomain.com
web_username=admin
web_password=123456
web_port = 10088
web_ip=0.0.0.0
web_base_url=
web_open_ssl=true
web_cert_file=conf/server.pem
web_key_file=conf/server.key`
from nps.
Related Issues (20)
- 可以考虑兼容官方0.26.10的版本吗 HOT 2
- 域名解析时,X_Forwarded_for出现多余内容 HOT 1
- 入出口流量如何清0, 有没有WEBAPI中好像也没有说明 HOT 1
- 服务端cpu持续50% HOT 1
- 希望加入在线更新的功能 HOT 1
- nps传输速度很慢 HOT 4
- 可以禁止ip访问吗? HOT 1
- 在隧道中关闭转发的TCP端口,端口还是可以正常使用的
- Docker中,NPC与服务端使用HTTP连接无效,TLS恒为false,无法修改 HOT 4
- 解压完压缩包,执行./nps install后,nps start启动无回显,ps -ef | grep nps无相关进程,lsof -i:8080也没有 HOT 1
- 使用的是kcp协议,打开tls 是连不上的。 HOT 2
- openwrt npc 永远停在了0.26.10 有没有哪个大佬顺便更新一下 arm 和 x86的 客户端和依赖 HOT 2
- 双重验证 2FAS HOT 1
- nps无法启动,create_captcha函数不存在 HOT 3
- 客户端IP地址显示不全
- NPS支持HA部署吗?在需要HA的环境下该怎么处理呢? HOT 1
- docker 启动很占内存,最后报cannot allocate memory
- 通过后台配置tcp模式的负载均衡只有一个目标能够访问
- 新增grafana&prometheus
- docker启动报错 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nps.