标签:lnmp
域名重定向
cd /usr/local/nginx/conf/vhosts/
vi jzq.conf
加入以下:
server_name www.jzq.pub www.aminglinux.com;
if ($host != ‘www.jzq.pub‘ ) {
rewrite ^/(.*)$ http://www.jzq.pub$1 permanent;
}
日志切割:
vim /usr/local/sbin/logrotate.sh
vi jzq.conf
Mkdir /home/logs/
本文出自 “IT屌丝” 博客,请务必保留此出处http://68686789.blog.51cto.com/10438688/1832159
标签:lnmp
原文地址:http://68686789.blog.51cto.com/10438688/1832159