如何在Vesta控制面板中强制域名为https?Vesta文档给出了以下说明。但是,在遵循它们之后,在Vesta控制面板> packages > default > edit > in Web Template NGINX dropdown force-https没有出现,因此不能被选中。任何帮助都将不胜感激。
1. Install custom nginx template
cd /usr/local/vesta/data/templates/web
wget http://c.vestacp.com/0.9.8/rhel/force-https/nginx.tar.gz
tar -xzvf nginx.tar.gz
rm -f nginx.tar.gz
3. Create new package or set force-https as nginx template in the existing package
4. Add new user and assing him package with force-https template
5. Add new domain with SSL certificate and check the result
``发布于 2020-07-12 17:56:35
进行更改后,运行以下命令。它将使更改显示在packages设置中...packages > default > edit > Proxy Template NGINX。将用户替换为您的服务器用户
/usr/local/vesta/bin/v-rebuild-user USER 此命令将重新构建用户配置,并可以覆盖您的自定义配置
下面是一个指向不同实现https://medium.com/thepolarlab/apply-ssl-certificates-to-your-website-and-force-using-https-connections-37e481f7a29d的链接
https://stackoverflow.com/questions/61863006
复制相似问题