AleSSaNDRo Verified User Joined Nov 19, 2004 Messages 108 Location Milano(Italy) May 19, 2007 #1 How i can rewrite /etc/httpd/conf/httpd.conf? My /etc/httpd/conf/httpd.conf isn't of directadmin
smtalk Administrator Staff member Joined Aug 22, 2006 Messages 9,636 Location LT, EU May 20, 2007 #2 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
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