Questions about correct Apache config

Hi! I’m trying to install Nextcloud on my server using Fedora’s standard RPM, behind an Apache server, because I have other services running on that server, and under a nextcloud subdomain.

I’m a bit buzzed by the documented Apache configuration which seems a bit light. In particular, the documented configuration grants acces to everythin under /var/www/nextcloud/, whereas Fedora provides a nextcloud-httpd package for usage with Apache, with a much more elaborate configuration. In particular, it presents a settings where everything under /var/lib/nextcloud/data/ and other directories is denied by default.

I’m a bit lost about what is actually needed from Fedora’s configuration and why the official configuration is so small.

Sadly, I can’t use Fedora’s nextcloud-httpd as is because this config doesn’t seem to support running NC under a subdomain. It also doesn’t seem to provied HTTPS redirection.

Note the comment on the next line in the Fedora config you linked to:

# Upstream's .htaccess does something similar with mod_rewrite.

There are a million ways to configure web servers.

The Admin Manual is based on a non-packaged (archive/from scratch) install. In an Apache environment much of the needed config is provided by Nextcloud itself via the bundled .htaccess.

1 Like

Ah yes indeed. Thank-you.