Control httpd.conf Subdomain Order?

open4biz

Verified User
Joined
Mar 22, 2009
Messages
125
Is there a way to control the entry order in the httpd.conf file?

I modified the file a couple days ago and switched the order of two subdomains, to set them ahead of the domain's main entry. I want the wildcard entry to go last so apache will acknowledge two static subdomains first. Well, somehow they were switched back and the wildcard is now gone.

How would I make the order stick, in the DirectAdmin way of doing things?

Thanks,

Ansel
 
Understood.

Perhaps there's a way to lock the file from DA, so it doesn't overwrite it? Alternately, what triggers the overwrites? If I knew that then I would know when to go fix httpd.conf when DA had its way with it. For instance, the last thing I updated after the last httpd.conf change was PHP. Would that have done it?

Thank you for your help with this zEitEr
 
To keep DirectAdmin from changing a file you can chattr it immutable.

For information see:
Code:
man chattr
Jeff
 
Perhaps there's a way to lock the file from DA, so it doesn't overwrite it? Alternately, what triggers the overwrites? If I knew that then I would know when to go fix httpd.conf when DA had its way with it. For instance, the last thing I updated after the last httpd.conf change was PHP. Would that have done it?

In case you do anything to any (sub)-domain/alias: add, delete, re-name; the whole httpd.conf of a user gets rewritten.
 
Back
Top