Vitural Host Lost

duy_dang2110

Verified User
Joined
May 30, 2013
Messages
19
Hi all
I create a Vitural host on file httpd.conf( /usr/local/directadmin/data/users/username/httpd.conf) for my customer webmail , but Virtual host lost after a time , and don't know why

Here is my virtual host config :

<VirtualHost X.X.X.X:80>
ServerName mail.X.X
ServerAdmin [email protected]
DocumentRoot /var/www/html/roundcube
CustomLog /var/log/httpd/domains/X.X.bytes bytes
CustomLog /var/log/httpd/domains/X.X.log combined
ErrorLog /var/log/httpd/domains/X.X.error.log
</VirtualHost
 
Last edited:
You need to edit the template and customize it, keep in mind that this edit will be applied to every user.

If you want this applied just to one user you need to use custom HTTPD configuration at admin level.

Regards
 
You need to edit the template and customize it, keep in mind that this edit will be applied to every user.

If you want this applied just to one user you need to use custom HTTPD configuration at admin level.

Regards

thank you ,I already change httpd.conf of this user , but after a time httpd.conf file turn back to the time when I had not changed it ( this user have 3 domain in his host )
 
You cant edit directly that file as i did already say.

You must create a custom template

cp /usr/local/directadmin/data/templates/virtual_host2.conf /usr/local/directadmin/data/templates/custom/

and than edit it (this will apply changes to all users virtual host).

OR

at admin level inside DirectAdmin go to Custom HTTPD configuration and customize just the domain you want to customize.

Every user httpd.conf file get rewritten from template, every customization done directly on file will be always be overwritten.

Regards
 
Back
Top