A new version of Danginx , v5.1 ,is available with the following bug fix / features
Bug fix : Fixed issue related with “Apache functioning normally ” in new domain / subdomains
Details : Recent versions of directadmin looks need a restart after making change to /usr/local/directadmin/conf/directadmin.conf . Otherwise the directadmin works with the old settings. So if you change directadmin apache port variable port_80 and forget to restart directadmin , then it will work with old port for updating /usr/local/directadmin/data/users/USERNAME/httpd.conf file. This will result in showing “Apache functioning normally” for adding new domains or subdomains from your directadmin control panel.
We added option to restart directadmin service after making update in directadmin.conf . This fixed the current issue.
We recommend to update to danginx 5.1 if you are updating your directadmin.