券商app是证券公司为方便用户进行交易而推出的手机应用程序。随着移动互联网的普及,券商app已经成为了证券交易的主要方式之一。那么,如何开发一款优秀的券商app呢?下面,我将从技术角度出发,介绍一些券商app开发的技巧。一、技术选型券商app的开发技术主要
2024-01-10
中文化、本土化、云端化的在线跨平台软件开发工具,支持APP、电脑端、小程序、IOS免签等等
Nginx 自动跳转到HTTPS Nginx设置http自动跳转https SSL配置
方法一
rewrite ^(.*)$ https://$host$1 permanent;方法二
适用于 80端口和443 配置在同一个 server{}内
if ($server_port = 80) {
rewrite ^(.*)$ https://$host$1 permanent;
}其他情况, 站点绑定很多域名,只让某个域名跳转:
set $redirect_https 1;
if ($server_port = 80) {
set $redirect_https "${redirect_https}2";
}
if ($http_host = 'www.yourdomain.com') {
set $redirect_https "${redirect_https}3";
}
if ($http_host = 'yourdomain.com') {
set $redirect_https "${redirect_https}3";
}
if ($redirect_https = "123") {
rewrite ^(.*)$ https://$host$1 permanent;
}示例
server {
listen 80;
server_name www.getssl.cc;
rewrite ^ https://$http_host$request_uri? permanent;
}
server {
listen 443;
ssl on;
ssl_certificate /etc/ssl/cacert.pem;
ssl_certificate_key /etc/ssl/privkey.pem;
server_name www.yourdomain.com;
server_tokens off;
location / {
fastcgi_param HTTPS on;
fastcgi_param HTTP_SCHEME https;
}
}