PDA

View Full Version : apache config problems


ProHS
01-05-2004, 06:22 AM
Hello,

I was wondering if their is a away to recover the virtual servers? Since i had to re compile apache web server because now on all the domains pointign to my site come up with a default apache site. I e-mail John about it but it seems it is taking him longer too respond the last few days...

DirectAdmin Support
01-05-2004, 01:13 PM
Hello,

The problem is resolved. For anyone else, here is some relevant info:

To rewrite the user httpd.conf files, just run:

echo "action=rewrite&value=httpd" >> /usr/local/directadmin/data/task.queue

to fix the apache binary, run:

cd /usr/local/directadmin/customapache
rm -f configure.*
./build clean
./build update
./build all

Note that the main /etc/httpd/conf/httpd.conf will never be overwritten/rewritten by DA (just appended to), and if you overwrite the file, all settings will be lost and the file will have to be manually copied from /usr/local/directadmin/data/templates/httpd.conf . Tokens need to be manually filled, and all of the "Include" lines at the bottom have to be added.

John