#!/bin/bash
#cd /usr/local/src/vhost_1
#cd /usr/local/src/vhost_zuixin
cd /www/wdlinux/nginx/conf/vhost
for i in `cat /opt/dirname.txt`;do
sed -i "75a\ access_log /www/web_logs/two_domain_logs/${i}.log; \n #error_log /www/web_logs/two_domain_logs/error/${i}.error.log;" ${i}.conf
sed -i "33a\ access_log /www/web_logs/two_domain_logs/m.${i}.log; \n #error_log /www/web_logs/two_domain_logs/error/m.${i}.error.log;" m.${i}.conf
#zuixin
#sed -i "79a\ access_log /www/wwwlogs/two_domain_logs/${i}.log;" ${i}.conf
#sed -i "75a\ access_log /www/wwwlogs/two_domain_logs/m.${i}.log;" m.${i}.conf
done