# How to create a Subdomain in HestiaCP?

### Creating a Subdomain <a href="#creacion-de-un-subdominio" id="creacion-de-un-subdominio"></a>

A **Subdomain** is a subdivision of a website, within the same domain. Subdomains are typically used to divide functions of a complex website.

For example, mydomain.com might display a main website with product offerings, while shop.mydomain.com will show the shopping cart for processing an order.

Follow these steps to create a **Subdomain**:

1. Within the hosting account where you want to add a subdomain, go to the **WEB** section.
2. Then, click on the **Add Web Domain** button.

<figure><img src="/files/03xpMXfCyufBVBAwtnmR" alt=""><figcaption></figcaption></figure>

3. Enter the subdomain you want the account to have.
4. Check the **DNS Support** option.\
   The **Mail Support** checkbox will allow you to create email accounts with the new subdomain. Its activation is optional.
5. Finally, save the new subdomain by clicking **Save**.

<figure><img src="/files/xjANaUKRV1qz9vuMVmfF" alt=""><figcaption></figcaption></figure>

Returning to the main account screen, in the **WEB** section, you will see the new subdomain.

1. You can edit the subdomain using the **pencil icon**, for example, to enable an **SSL certificate**.
2. You can also access the **File Manager** to upload the necessary content.

<figure><img src="/files/M6BcdDNJKwwiLS8Qc8a1" alt=""><figcaption></figcaption></figure>

The subdomain will create a directory in the path:\
**home/web/subdomain**

<figure><img src="/files/PFMPFDMHB1tngBhEYeAy" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://help.sitioshispanos.com/menu-principal/guias/web-hosting/subdominios-aliases-y-dominios-adicionales/como-crear-un-subdominio-en-hestiacp.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
