===== HOSTS ===== {{en:small_icons:hosts_list.png|}} This section contains hosts created and managed by the panel. To point a host to the server you should have at least one //ftp/shell// account. While adding a host a DNS-record is added automatically to the configuration of the dns-server. Records added can be viewed in the section [[en:vhosting:dns_zones|management DNS]] of the module.\\ To get a host working the following steps should be made:\\ - Before a registration or a transfer of a host, this host should be added to the server. The DNS-zone with records will be generated automatically. It should be done in at least 8 hours before the registration or transfer. In case you want to use your own NS-servers ns1.example.com и ns2.example.com, you should fill the fields //Own NS1// и //Own NS2// while adding a host. You should also add records for a zone type A. ns1 IN A 123.123.123.123 ns2 IN A 123.123.123.123 - NS-servers specified in the field nserver while registration or transfer must coincide with NS-servers specified in the panel. Otherwise,the registrator's robot won't allow to transfer a domain because of discrepancy in NS-servers. This rule must be obeyed when one's own servers are pointed to.\\ **ACTIONS AVAILABLE:**\\ //**Add a host**// – allows adding a new host.\\ Options available while adding a host:\\ //**Name**// – a domain name of a host.There's a possibility of multiple adding hosts to the panel. To do it you should add domains with a space, a comma, or with a new line.\\ //**HTTP server**// – allows to choose a type of //http-server// that will manage this host. At the moment three types of web-servers are supported:[[http://httpd.apache.org/|apache]], [[http://www.acme.com/software/thttpd/|thttpd]] и [[http://sysoev.ru/nginx/|nginx]]. Your choice will depend on the type of your site: if it is a dynamic site using PHP/CGI it's better to use apache. If it's static([[http://en.wikipedia.org/wiki/Html|HTML]] or file storage ) – then [[http://www.acme.com/software/thttpd/|thttpd]] or [[http://nginx.net|nginx]].\\ //**FTP account**// – allows to choose account the host will be pointed to. When the host is created its root directory will be in the home directory of the account and the host will be accessed with password-login of the account. Roots to hosts can be changed via settings.\\ //**IP address**// – the address the host is pointed to.\\ //**CGI/PHP**// – if the host needs support of running scripts.\\ //**Hotlink**// – protection of host files from linling to other hosts. The field is a list of file extensions separated by the symbol | which are protected from hotlink. Hotlink protection can be disabled if this field is left empty. More details about hotlink [[http://en.wikipedia.org/wiki/Hotlink|here]].\\ //**Webalizer**// – the panel supports a few analyzers of web-server logs for output of the statistics on queries, visits. Theses are [[http://webalizer.com/|webalizer]] and [[http://awstats.org|awstats]].\\ //**Edit**// – allows to edit features of the site and change its parameters.\\ //**Aliases**// - you can specify a list of names that your domain will respond to. When the domain is added there are 2 records there //domain.com// and //http://www.domain.com// (assuming you've added the domain //http://domain.com//). You can change aliases added by default to your own ones by filling the variable //default_host_aliases// in the module VHOSTING with the value: //HOSTNAME//, //www.HOSTNAME//, //*.HOSTNAME// -in this case three aliases will be added, the name //HOSTNAME// will be changed to the name of the added host. You can add //domain2.com//, and your host will respond to both //domain.com//and//domain2.com//. You can also use asterisk together with your domain name to indicate that all the subdomains will be names for this domain (//*.domain.com//). Specifying the IP address of the domain in the list of names you get access to it without specifying the name http://1.2.3.4/test.html.\\ //**Hotlink**// – allows to list domains where hotlink is allowed and also add new domains for hotlink.\\ //**Delete**// – to delete a host. Not only records of a host, but also the content of a root directory of the host can be deleted. To do it the option //Delete on the disk// should be chosen. To remove a host the job //Delete host content// should be present in the section [[:en:base:condition_jobs]] . Otherwise, the content won't be removed.\\