# Declaring a new host

To add a new host to the web server, go to the main console dialog and press Add in the Hosts table.

The displayed dialog contains the following fields:

- Protocol: Set it to HTTP if the host will use normal non-secure connections. If you want to have the host serve content over secure connections only using SSL/TLS, set it to HTTPS. If you are on Abyss Web Server X2, you can also choose to have the host serve content on both secure and non-secure connections by setting Protocol to HTTP+HTTPS. In such a situation, you can configure some virtual paths to be accessible on secure connections only by adding them to the Exclusively Serve On HTTPS table.

- HTTP Port: The port on which the new host will wait for HTTP connections. Its default value is 80. This field is not available if the Protocol is set to HTTPS only.

- HTTPS Port: The port on which the new host will wait for secure HTTPS connections. Its default value is 443. This field is not available if the Protocol is set to HTTP only.

- Certificate: The certificate that will be used for secure connections with the new host. This field is not available if the Protocol is set to HTTP only. Note that the certificate's Host Name (Common Name) should be equal to or match with the names of the new host that you are declaring. Otherwise, visitors' browsers will report a warning about mismatched names on every access to the host.

- Host Name: The main name of the new host. If the field is empty, the host will not be associated with any name and will answer to all requests that reach it on the configured port. The host can also have more than one name: additional names should be declared later in the Host Names table in the General dialog related to the host. The host name may be an Internation Domain Name (IDN) containing non-Latin characters. The host name can also be a pattern such as `*.mysite.com`. Refer to the "Patterns Format" appendix for more information about patterns.

- Documents Path: The path of the web site files. If it is a relative path then it is considered as a subpath of the server root.

- Log File: The path of the log file. If it is relative, it is considered as a subpath of the server root. If empty, logging is disabled.

- Copy Configuration From: The configuration of the new host is cloned from the configuration of already defined hosts or from the default configuration.

> Note: Adding a new host is only possible in Abyss Web Server X2. Abyss Web Server X1 can only manage a single host.