# Virtual Domains

It is possible to host several domains on a single project, and have different homepages for each domain.

This is a new feature thats available to projects created from 3 October 2017.

## Limitations

Virtual domains currently only works for user files - not to the app installed on the project.

## How does it work?

To give each domain its own unique homepage, all you need to do is have a folder named as the full domain for each of your assigned domains.

So if you have a project with the following domains assigned:

* sub-a.domain1.com
* sub-b.domain2.com

Then you just need to create a folder with the domains files in a folder in the project root:

* /var/www/user/sub-a.domain1.com/
* /var/www/user/sub-b.domain2.com/

You can create these folders in your Dropbox project folder, or use FTP.

Note that the files are also accessible by using the domain as a folder name in the URL - ie `http://sub-a.domain1.com/sub-b.domain2.com/` will also show the homepage for domain2.


---

# 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.launchpal.com/getting-started/domains/virtual-domains.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.
