DirectAdmin custom httpd.conf code to the VirtualHosts of a domain

DirectAdmin Allows Admin to insert extra httpd.conf code that a User may require. To access the control page for this functionality, go to Admin Panel -> Admin Settings -> Customize Httpd Configurations.

Once you see the list of domain, click the domain you wish to insert the extra httpd.conf code to.

Another common use is to add another ServerAlias. This allows another domain to be used to access the exact same content. To accomplish this, you would write

ServerAlias mynew-domain.com www.mynew-domain.com

To get mynew-domain.com and www.mynew-domain.com to point to the original domain for the VirtualHost. You will also have to make sure that mynew-domain.com and www.mynew-domain.com both resolve to the same IP.

2 Responses to “DirectAdmin custom httpd.conf code to the VirtualHosts of a domain”

  1. Webchemieon 23 Dec 2009 at 8:29 pm

    Thanks, this helped me a lot! I just to edit the httpd.conf files manualy.

  2. 3seventy-sixon 13 Jan 2022 at 12:32 am

    2griffith…

Trackback URI | Comments RSS

Leave a Reply

You must be logged in to post a comment.