Vesta使用技巧

by Web全栈工程师 on 2015 年 05 月 27 日

Vesta开启文件管理

cat >>/usr/local/vesta/conf/vesta.conf<<EOF
FILEMANAGER_KEY='ILOVEREO'
EOF
service vesta restart

强制http跳转https

https://vestacp.com/docs/#how-to-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

2. Create new package or set force-https as nginx template in the existing package
3. Add new user and assing him package with force-https template
4. Add new domain with SSL certificate and check the result

修改默认首页

/usr/local/vesta/data/templates/web/skel/public_html/

原创文章,转载请注明:转载自Web开发笔记 | Vesta使用技巧

本文链接地址:https://www.magentonotes.com/vesta-tips.html

Comments on this entry are closed.

Previous post:

Next post: