Rewrite /etc/httpd/conf/httpd.conf

Look for it into /usr/local/directadmin/data/templates (copy it from there) and then do:
Code:
cd /usr/local/directadmin/data/users
for i in `ls`; do { echo "Include /usr/local/directadmin/data/users/$i/httpd.conf" >> /etc/httpd/conf/httpd.conf; }; done;
IP=`grep $HOSTNAME /etc/hosts | awk '{print $1}'`
perl -pi -e 's/|IP|/$IP/' /etc/httpd/conf/httpd.conf
 
Back
Top