per-domain nginx=1 (disable proxy) for nginx-only processing (SKINS)

Version 1.62.0


This feature requires the DirectAdmin "Pro Pack": If you're running with custombuild options.conf setting: webserver=nginx_apache where apache is behind an nginx proxy, then by default all domains are listed in both the User nginx.conf and httpd.conf. All connections run through the nginx.conf, and some requests are passed through to apache as needed, while static files are processed by nginx. This feature lets you shut off the proxy part, just for 1 domain, such that the domain is procssed 100% by nginx, without using apache at all. php is still enabled for the nginx-only domain (must use php-fpm just like standalone nginx) To enable this for a given domain, add: nginx=1 to the domain's config in: /usr/local/directadmin/data/users/FRED/domains/DOMAIN.COM.conf and issue a rewrite: /usr/local/directadmin/custombuild/build rewrite_confs =================== JSON -------- View the state: CMD_ADDITIONAL_DOMAINS?action=view&domain=testdomain%2Ecom&ipp=50&json=yes&redirect=yes is a dump of the file, and will include this if enabled: nginx=1 HAS_PER_DOMAIN_NGINX=yes will be shown if this value is allowed to be controlled. -------- Save the setting: CMD_DOMAIN method: POST action=modify form_version=1.1 ... nginx=1 Saved along with all other settings (php, cgi, etc) OR you can save just this item: method: POST action=modify only_affect=nginx nginx=1 ------ DISABLE Same as enabling, except pass either: nginx=0 or simply omit the nginx variable entirely, as it is a checkbox (absence==off) =========== SKINS /usr/local/directadmin/data/skins/enhanced/user/modify_domain.html Add after php: |*if HAS_PER_DOMAIN_NGINX="yes"| <tr> <td>|LANG_NGINX_ONLY|</td> <td align=center><input type="checkbox" name="nginx" value="1" |NGINX_CHECKED|></td> <td>|LANG_NGINX_ONLY_DESC|</td> </tr> |*endif| =========== LANG /usr/local/directadmin/data/skins/enhanced/lang/en/user/modify_domain.html LANG_NGINX_ONLY=Nginx-Only LANG_NGINX_ONLY_DESC=Use only Nginx. Proxy to apache is disabled. ===== EVO2053

Try DirectAdmin with a 30-day money back guarantee!