> For the complete documentation index, see [llms.txt](https://commandbox.ortusbooks.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://commandbox.ortusbooks.com/5.9.0/embedded-server/configuring-your-server/custom-welcome-files.md).

# Welcome Files

The default welcome files are the usual index.cfm, index.htm, index.html, etc but you can override this with the `welcomeFiles` setting in your `server.json` by providing a comma-delimited list of files that you would like CommandBox to look for when a user hits a directory on a running server.

```
server set web.welcomeFiles='go.cfm,main.cfm,index.html'
```

This setting is a complete override of the defaults, so you need to specify the full list.

## Directory Browsing

By default, a CommandBox server will not show the contents of a directory that doesn't have an index file.  You can enable directory browsing for a single server with

```bash
server set web.directoryBrowsing=true
```

And you can enable it for all servers by default with

```bash
config set server.defaults.web.directoryBrowsing=true
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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://commandbox.ortusbooks.com/5.9.0/embedded-server/configuring-your-server/custom-welcome-files.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.
