欢迎各位兄弟 发布技术文章
这里的技术是共享的
[root@ebs-56865 ~]# vim apacheaddpublicdir.sh
#!/bin/bash
#
for I in /www/wdlinux/httpd-2.2.31/conf/vhost/* ; do
sed -i 's/public\_html/public\_html\/public/g' $I
sed -i 's/\r//g' $I
done
[root@ebs-56865 ~]# vim nginxaddpublicdir.sh
#!/bin/bash
#
for I in /www/wdlinux/nginx-1.8.1/conf/vhost/* ; do
sed -i 's/public\_html/public\_html\/public/g' $I
sed -i 's/\r//g' $I
done