This solution allows you to set up Nginx in front of Apache for all your DirectAdmin-driven virtual hosts. Any domain change made in DA panel will be automatically reflected* on Nginx vhost list.
* ng-httpd control script operates once a minute via crontab, so note on slight delay in changes propagation
- Debian-based or RHEL-based linux distro
- DirectAdmin 1.37+ with Apache 2.2/2.4
Simply run as root:
git clone https://github.com/rakeev/ng-httpd
cd ng-httpd && ./install.sh
You could easily on/off Nginx frontend in DA web interface your-domain:2222/CMD_PLUGIN_MANAGER
using install/uninstall buttons.
There is no necessity to interact with control script normally. But if you really need, you could =) Call /usr/local/nginx/sbin/ng-httpd.sh
with no arguments to get usage notes.
Released under the MIT license