Pretty URLs on OpenBSD 6.6 httpd

I’m having troubles getting pretty urls to work on openbsd 6.6 httpd. I have the following options set in config.php:

'overwrite.cli.url' => 'https://example.org/',
'htaccess.RewriteBase' => '/',

Navigating to, for example, https://example.org/apps/files brings me to the files app, but any links from inside nextcloud still include /index.php/, ie https://example.org/index.php/apps/files.

You need to execute

occ maintenance:update:htaccess

$ doas -u www ./occ maintenance:update:htaccess
The process control (PCNTL) extensions are required in case you want to interrupt long running commands - see
http://php.net/manual/en/book.pcntl.php
.htaccess has been updated

The behaviour is the same after running the command.

with occ they mean php occ

take a look at the NC manual!

The guide (https://docs.nextcloud.com/server/15/admin_manual/installation/source_installation.html#pretty-urls) is only for apache webserver.