# Setting: `server_require_subdomain`

- **Constant:** `ConfigInterface::SERVER_REQUIRE_SUBDOMAIN`
- **Category:** `servers`
- **Type:** `select`
- **Required:** yes
- **Sensitive:** no
- **Validation:** `required|string|max:255`
- **Placeholder / default hint:** `false`

## Description

Require users to create a panel subdomain before starting a server. Hides allocation IPs until a subdomain exists. Enable "Allow user-made subdomains" first. Roles with user.servers.bypass_subdomain_requirement are exempt.

## Allowed options

- `true`
- `false`

## Change via CLI

```bash
featherpanel saas getsetting server_require_subdomain
featherpanel saas setsetting server_require_subdomain "<value>"
```

## Change via API

```http
PATCH /api/admin/settings
Content-Type: application/json

{ "server_require_subdomain": "<value>" }
```
