How to Use DirectAdmin Nginx Templates
Enable the Nginx Template feature, assign an available template to the site location, and verify that it works.
The Nginx Template feature lets you apply predefined rules for web applications such as WordPress or Laravel. The template must match the application already installed at the selected location; selecting a template does not install that application.
The panel address, server name, domain, username, versions, limits, and available tools may vary depending on your service. Use the details in your hosting welcome email.
1. Review the site and its location
Identify the domain, the installed application, and its public path. For example, / corresponds to the site root, and /blog to an application hosted under that prefix. Keep a backup and note the current selection before changing it.
2. Open Nginx Template
From the dashboard, open Advanced Features → Nginx Template and check the selected domain.
If Enable appears, click that button to enable the feature for the domain. With this change, the site will be served entirely by Nginx and will no longer use Apache. As a result, .htaccess files will not be processed. The application template you select already contains rewrite rules adapted to Nginx for that application. This does not automatically convert other custom rules in your .htaccess file, such as redirects or custom restrictions; check their compatibility before enabling the feature.
3. Add the appropriate template
Click Add Template. In Location, enter the URL prefix where your application is installed, not a server file path or a full URL. For a subfolder, use a value such as /blog, without a trailing slash; for the root, use /.
Under Template, choose the option that matches your application. Use only the options offered by the service and review the scope of variants such as WordPress (FastCGI Cache), which also change caching behavior.

Click Add Template and check that the table shows the correct location and name.

4. Check the site
Wait for the configuration to take effect and visit the site location. Check the home page and an internal application URL; if the template affects caching or dynamic content, check those functions as well.
If a validation error appears, correct the indicated value before saving. If the site stops working as expected, return to the tool and compare the template and its location with the previous selection. To remove an association, select its row and use Delete; Disable changes the feature's status for the domain. Check the site again after any change.
