Add {DOMAIN} variable
I added the DOMAIN variable, it would be useful for many people.
server/plugins-available/apache2_plugin.inc.php 916c916 < $trans = array('{DOCROOT}' => $vhost_data['web_document_root_www'], '{DOMAIN}' => $data['new']['domain']);
$trans = array('{DOCROOT}' => $vhost_data['web_document_root_www']);
fpm_socket : '127.0.0.1:'.
vhost_data['fpm_port']).';');
server/plugins-available/nginx_plugin.inc.php
1079c1079
< $trans = array('{DOCROOT}' => $vhost_data['web_document_root_www'], '{DOMAIN}' => $data['new']['domain'], '{FASTCGIPASS}' => 'fastcgi_pass '.($data['new']['php_fpm_use_socket'] == 'y'? 'unix:'.$trans = array('{DOCROOT}' => $vhost_data['web_document_root_www'], '{FASTCGIPASS}' => 'fastcgi_pass '.($data['new']['php_fpm_use_socket'] == 'y'? 'unix:'.$fpm_socket : '127.0.0.1:'.$vhost_data['fpm_port']).';');
{tmpl_var name="apache_directive_snippets_txt"}
----
{tmpl_var name='variables_txt'}: {DOCROOT}, {DOMAIN}
interface/web/sites/templates/web_domain_advanced.htm
91c91
< {tmpl_var name='apache_directives'} {tmpl_var name="available_apache_directive_snippets_txt"}<textarea name="apache_directives" id="apache_directives" rows='10' cols='50' style="width:400px;">{tmpl_var name='apache_directives'}</textarea> <b>{tmpl_var name="available_apache_directive_snippets_txt"}</b><br><br> {tmpl_var name="apache_directive_snippets_txt"}<br>----<br><b> {tmpl_var name='variables_txt'}:</b> <a href="javascript:void(0);" class="addPlaceholder">{DOCROOT}</a>
{tmpl_var name="nginx_directive_snippets_txt"}
----
{tmpl_var name='variables_txt'}: {DOCROOT}, {DOMAIN}, {FASTCGIPASS}
95c95
< {tmpl_var name='nginx_directives'} {tmpl_var name="available_nginx_directive_snippets_txt"}<textarea name="nginx_directives" id="nginx_directives" rows='10' cols='50' style="width:400px;">{tmpl_var name='nginx_directives'}</textarea> <b>{tmpl_var name="available_nginx_directive_snippets_txt"}</b><br><br> {tmpl_var name="nginx_directive_snippets_txt"}<br>----<br><b> {tmpl_var name='variables_txt'}:</b> <a href="javascript:void(0);" class="addPlaceholder">{DOCROOT}</a>, <a href="javascript:void(0);" class="addPlaceholder">{FASTCGIPASS}</a>
179c179 <
{tmpl_var name='variables_txt'}: {DOCROOT}, {DOMAIN}, {FASTCGIPASS}
interface/web/admin/templates/directive_snippets_edit.htm 20c20 < {tmpl_var name='snippet'}<textarea name="snippet" id="snippet" rows='10' cols='50' style="width:400px;">{tmpl_var name='snippet'}</textarea><span class="nginx"> {tmpl_var name='variables_txt'}: </span><a href="javascript:void(0);" class="addPlaceholder nginx">{DOCROOT}</a><span class="nginx">, </span><a href="javascript:void(0);" class="addPlaceholder nginx">{FASTCGIPASS}</a>