docs/Basic configuration
Updated 2026-106 min read

Basic configuration

Every site in Fast-Https is described by a single JSON configuration file. Edit the file, reload the service and the change applies. This page covers how the service starts, where the file lives and what it looks like.

1 Start and tray menu

On Windows, double click monitor.exe in the application folder; on Linux, run ./fast-https in a terminal. An icon appears in the notification area. Its context menu offers four actions:

Menu itemAction
STARTStart the web service
STOPStop the web service
RELOADReload the configuration file without stopping the process
QUITExit the tray program

2 Default page

Once the service is running, open http://localhost:8080/ to see the default Fast-Https start page, which offers the root certificate root.crt for download (see Serve a site over HTTPS).

3 Where the configuration file lives

PlatformMain configuration file
WindowsD:\fast-https_Windows_x86_64\config\fast-https.json
Linux/usr/local/fast-https/config/fast-https.json

4 Configuration file structure

A minimal working main configuration file looks like this:

{
  "log_root": "./logs",
  "pid": "./fast-https.pid",
  "http": {
    "include": "mime.types",
    "server": [
      {
        "listen": 8080,
        "server_name": "localhost",
        "location": [
          {
            "url": "/",
            "type": "local",
            "root": "./httpdoc/www.myweb.com",
            "index": ["index.html", "index.htm"]
          }
        ]
      }
    ]
  }
}

Top level options:

OptionDescriptionExample
log_rootLog directory./logs
pidPath of the process PID file./fast-https.pid
http.includeMIME type table, or a directory of site configs"mime.types" / ["./config/conf.d"]
http.serverList of sites, each entry is one virtual hostsee below

Common options inside a server block:

OptionDescription
listenListening port; use "443 ssl" for an encrypted listener
server_nameDomain served by this site
ssl_certificateCertificate path, only needed by ssl listeners
ssl_certificate_keyPrivate key path, only needed by ssl listeners
locationList of path rules that decide how a request is handled

A location block uses type to select the handler:

typeMeaningRelated optionsReference
localPublish a local static directoryroot, index, tryPublish a local static site
proxyReverse proxy an upstream serviceproxy_pass, proxy_set_header, proxy_cacheReverse proxy a site
rewriteRedirect to another addressrewriteConfigure redirects

5 Apply the changes

Save the file and choose RELOAD from the tray menu. If the change touches a listening port or the certificate files themselves, prefer STOP followed by START so the port is released cleanly.

JSON has no comments. When you copy a sample from another document, delete any line starting with #, otherwise the service fails to read the configuration.