# Managing Websites & Subdomains

#### Adding a New Website

1. Navigate to Assets > Manage Websites.
2. Click Add a Website.
3. Enter your website’s root domain (e.g., `example.com`).
4. Click Get to auto-fetch the Server IP address, or enter it manually.
5. Upload your SSL certificate for the domain.
6. Select the newly uploaded certificate from the dropdown list.
7. Click Save.
8. In your DNS provider's settings, update your domain's A record to point to the OSTO IP provided.
9. Set the TTL (Time to Live) to 600 seconds for faster propagation.

#### Adding a Subdomain

1. In the Manage Websites section, locate and select the parent domain.
2. Click Add Subdomain.
3. Enter the full subdomain (e.g., `app.example.com`).
4. Click Get to auto-fetch the IP address, or enter it manually.
5. Upload and select the appropriate SSL certificate (wildcard or specific).
6. Click Save.
7. In your DNS provider's settings, update the subdomain's record to point to the OSTO IP.
8. Set the TTL to 600 seconds.

#### Editing or Deleting a Website/Subdomain

* To Edit: Select the website or subdomain, modify the necessary details, and click Save.
* To Delete: Select the website or subdomain and click Delete.

> Important Note: A parent website cannot be deleted if it still has subdomains associated with it. You must delete all subdomains first.


---

# 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://osto-cybersecurity.gitbook.io/osto/knowledge-base/how-to-guides/asset-management/managing-websites-and-subdomains.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.
