Global pre/post file before each apache/nginx template

Version 1.533

Feature
Finished

For the main domain http/https/subomain templates, you can now create custom template files that will be tokenized and inserted outside of the VirtualHost/server{} entry. For example, if you want code before all main virtual_host2.conf templates, create: /usr/local/directadmin/data/templates/custom/virtual_host2.conf.pre with the code you want, and it will show up before all VirtualHosts from that given template. This can be repeated for other template files: nginx_server_secure_sub.conf nginx_server_secure.conf virtual_host2_secure_sub.conf virtual_host2_secure.conf nginx_server_secure.conf nginx_server.conf virtual_host2_secure.conf virtual_host2.conf

Interested to try DirectAdmin? Get a 30-day Free Trial!