# GET /web-server

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

UrbeStack release 0.2.35 API operation in the web-server group.

Get Apache settings, worker-limit history, and memory usage

- Who may call it: administrator
- Token scope, any of: settings, read, all
- Answers: 200 OK

Only administrators can call this operation. The token must have the settings scope.

The 200 response is a WebServer report. It identifies the active Apache MPM and the file that loads it. It also reports whether Apache's full configuration test passed, which files Apache read and in what order, and which values Apache would adjust while reading them.

For each reported setting, the response gives the effective value and its source, either a file and line number or Apache's built-in default. It lists every line that sets the directive in the order Apache reads it. If UrbeStack has a saved value, the response shows the value, who set it, and when. For ServerLimit and ThreadLimit, it also shows any different value the running master retains until a full restart.

For the event MPM, the report covers StartServers, ServerLimit, ThreadLimit, ThreadsPerChild, MaxRequestWorkers, MinSpareThreads, MaxSpareThreads, MaxConnectionsPerChild, and AsyncRequestWorkerFactor. The connection settings are Timeout, KeepAlive, KeepAliveTimeout, and MaxKeepAliveRequests. The report names the processes for other MPMs and includes any settings saved for them in UrbeStack. MPM tuning is available only for event.

The report covers each Apache master process from the last 14 days and shows whether it reached MaxRequestWorkers or came within MinSpareThreads of that limit. Apache logs each condition only once per master process, even across graceful reloads. The report also shows how many times the scoreboard filled and when it last filled, and includes up to 200 relevant error log lines, newest first.

The report shows current proportional set size (PSS) for Apache processes and the domains' PHP-FPM pools. It also estimates Apache's memory usage at its maximum process count.

## As a command

- [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.

## Example

Set $API to the base URL and $TOKEN to the token, as the [API overview](https://urbestack.com/docs/api.md) shows.

```
curl -sS -X GET "$API/web-server" \
  -H "Authorization: Bearer $TOKEN"
```

Response, 200 OK:

```
{
  "apache": {
    "mpm": "text",
    "mpm_file": "text",
    "pid": 1,
    "present": true,
    "running": true,
    "started": "text",
    "tuned": true,
    "unit": "text",
    "version": "0.0.1",
    "virtual_hosts": 1
  },
  "file": {
    "path": "public_html/index.php",
    "read": true,
    "written": true
  },
  "hits": {
    "days": 1,
    "lines": [
      {}
    ],
    "log": "",
    "scoreboard_full": {},
    "starts": [
      {}
    ]
  },
  "memory": {
    "apache": {},
    "at_most": {},
    "available": 1,
    "pools": {},
    "total": 1
  },
  "not_used": [
    {
      "at": "text",
      "by": "text",
      "name": "alice",
      "scope": "text",
      "value": 8443
    }
  ],
  "settings": [
    {
      "chain": [
        {}
      ],
      "comes_from": {},
      "default": "text",
      "group": "processes",
      "in_force": "text",
      "kind": "count",
      "max": 1,
      "min": 1,
      "name": "alice",
      "overridden_after": true,
      "restart_only": true,
      "running": "text",
      "scope": "text",
      "set_here": {}
    }
  ],
  "test": {
    "command": "text",
    "ok": true,
    "warnings": [
      "text"
    ],
    "words": "text"
  }
}
```

## Errors

- 401: Authentication required
- 404: No setting '<setting>' here; known: 
