1. 代理与反向代理
https://blog.csdn.net/xuanjiewu/article/details/79458266
2. 网速限制
https://blog.csdn.net/zhengholien/article/details/78003159
https://blog.csdn.net/u013160024/article/details/70182911
3. 502问题解决
https://www.cnblogs.com/feng18/p/5148985.html
4.配置HTTPS
申请CA证书
配置:
server {
listen 443;
server_name bjubi.com; // 你的域名
ssl on; //开启SSL
root /var/www/bjubi.com; // 前台文件存放文件夹,可改成别的
index index.html index.htm;// 上面配置的文件夹里面的index.html
ssl_certificate cert/214292799730473.pem;// 改成你的证书的名字
ssl_certificate_key cert/214292799730473.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 / {
index index.html index.htm;
}
}
server {
listen 80;
server_name bjubi.com;// 你的域名
rewrite ^(.*)$ https://$host$1 permanent;// 把http的域名请求转成https
}