Skip to content
Skip the docs menu

Sites

Web server settings

Read the web server config Fuzops writes for each site, add your own lines safely, or take over the whole file. Every change is checked.

Last updated 3 min readView as Markdown

On this page

Every site has a web server config (technical name: Nginx config, vhost) that Fuzops writes for it from what you choose on the other pages: the address, HTTPS, redirects, other addresses, password protection, page caching and limits. Web server settings, in the site's Settings tab, shows that file and gives you two ways to change it.

The complete config#

The page opens on The config Fuzops writes: the whole file, read-only, with line numbers and the path of the file on the server (for example /etc/nginx/sites-available/shop.example.com.conf). The lines in blue are the ones written for the other pages. A block of notes at the top of the file is folded; the arrow in the margin next to it opens it. Copy and Download take the whole file.

Web server settings: the complete config of a site, read-only, with line numbers, Copy, Download, Fetch from server and EditWeb server settings: the complete config of a site, read-only, with line numbers, Copy, Download, Fetch from server and Edit
The complete config of a site.
  • Fetch from server reads the file as it is on the server now. When someone changed it outside Fuzops, the page shows what differs, with Keep the server's version or Put ours back.
  • When the site has lines of your own (see below), the page says so above the config.

Add your own lines (the safer way)#

The second tab, Add your own lines, has three boxes: before the site's block, inside it, and after it. What you write there is kept every time Fuzops rewrites the config, and everything else keeps working. Each save is checked first and kept as a version you can compare and go back to.

Use this for most changes, such as an extra header or a rate limit on a login page.

Edit the whole file#

Edit turns the same view into an editor. Check and apply runs the web server's own check (nginx -t) first; only when it passes is the new config used, with a reload that does not cut visitors off. If the check fails, nothing changes, the previous config stays live, and the page shows the web server's own message with the line it names marked in the editor (Open it to fix line 12).

The first time you apply a hand-written config, Fuzops lists what stops being written into it for that site:

  • HTTPS: a new or renewed certificate is not put into the config;
  • redirects, other addresses (and every subdomain), password protection;
  • page caching and limits, for the kinds of site that have them;
  • switching the PHP version, and Livewire on Laravel sites;
  • your own lines from Add your own lines.

While a hand-written config is in use, this page says so, and the pages whose settings it no longer takes (HTTPS, redirects, other addresses, password protection, caching, limits) say it in one line with a link back here.

  • See what Fuzops would write now compares your config with the one Fuzops would write today, so you can copy lines across.
  • Go back to the config Fuzops writes writes the generated config again, checked first like any change. Your hand-written versions stay in the list, and changes made on the other pages are written again from then on.

Sites on several servers#

For a site that runs on several servers, the config shown is the one on the main server. A hand-written config is used on the main server only: the other servers keep the config Fuzops writes, and Set up again on Servers this site runs on writes that one, not yours. Lines from Add your own lines follow the site the same way as its other settings.

Sites brought in from another tool#

A site that was set up with another tool keeps its own web server config until Fuzops takes it over. The page shows the file but changes nothing, and says how to let Fuzops manage the site. See Bring in a server.

Settings for every site on a server#

A server's own web server settings are under the server's Services: open the Web server row's settings. They show the server-wide files Fuzops manages (the main config and the files beside it) read-only after Read from server, and below them your own settings file, which applies to every site on the server. It is checked the same way before it is used.

Still stuck? Get help

Docs menu