# urbestack-web-server-set

First published 25 Oct 2026 (release 0.2.16) · Unchanged since publication

UrbeStack release 0.2.35 command, run as root in the server shell.

## Usage

```
urbestack-web-server-set [--set NAME=VALUE]... [--clear NAME]... [--restart] [--accept-warnings] [--dry-run]
```

## Description

Sets or clears Apache settings in zz-urbestack-web-server.conf. UrbeStack writes only this file, which Apache reads after its own configuration files. Use --set NAME=VALUE to set an override and --clear NAME to remove it so Apache's own configuration determines the value again. Repeat either option to change more than one setting.

For the event MPM, the settings are StartServers, ServerLimit, ThreadLimit, ThreadsPerChild, MaxRequestWorkers, MinSpareThreads, MaxSpareThreads, MaxConnectionsPerChild, and AsyncRequestWorkerFactor. The connection settings are Timeout, KeepAlive, KeepAliveTimeout, and MaxKeepAliveRequests.

UrbeStack tests the full Apache configuration with the new file in place. If the test fails, UrbeStack restores the previous configuration. If Apache warns that it would adjust a value while reading the file, saving requires --accept-warnings. For example, Apache may adjust ThreadsPerChild if it exceeds ThreadLimit, or MaxRequestWorkers if it falls between multiples of ThreadsPerChild or exceeds ServerLimit multiplied by ThreadsPerChild.

By default, UrbeStack reloads Apache gracefully across all sites and lets requests in progress finish. The running master keeps its existing ServerLimit and ThreadLimit values until a full restart. Use --restart to restart Apache immediately and apply those changes. A full restart drops open connections. If Apache fails to come back up, UrbeStack restores the previous file and starts Apache with it.

## Same in the API

- [PATCH /web-server](https://urbestack.com/docs/api/patch-web-server.md): Set or clear Apache settings

## Command family: web

- [urbestack-web-server-list](https://urbestack.com/docs/commands/urbestack-web-server-list.md): Shows Apache's server-wide settings for UrbeStack's Web server section.
