How to add all of the Include lines into your httpd.conf

by admin on Sep.07, 2009, under DirectAdmin

If you reinstall DA (./directadmin i) on a live box, your /etc/httpd/conf/httpd.conf file will get overwritten and emptied of all data. You’ll need to read all of the Include lines for your users so that their sites show up (you’ll be seeing the apache pages, or the shared IP pages instead)
Type:

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;

Note that this add the include lines for *all* users.. so if you’ve added users to DA after you ran the "./directadmin i", you’ll end up with duplicates. Make sure you don’t have duplicate Include lines.. (apache won’t restart, it will let you know)

Related posts:

  1. How to downgrade from apache 2 back to apache 1.3 If you need to go back to apache 1.3 after...
  2. Adding custom httpd.conf code to the VirtualHosts of a domain DirectAdmin Allows Admin to insert extra httpd.conf code that a...
  3. Using a custom VirtualHost template If you wish to change the setup of the VirtualHosts...
  4. Apache stops responding but is running A few things that could cause that are: Possible Causes:...
  5. How to setup per-domain Aliases If you want to disable /webmail for just one domain...

Related posts brought to you by Yet Another Related Posts Plugin.

:, ,
No comments for this entry yet...

Leave a Reply

Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!

Kontak

Budhi Indah A 31
Cimindi Cimahi 40514
West Java
Indonesia

Phone/SMS :
Info/Bantuan : 62-8158-6270622
Billing/konfirmasi : 62-8888-763551

Self Advertise


My site is worth $7548.2.
How much is yours worth?