Nextcloud on main FQDN

Quick question (and prob an obvious answer)

The FQDN is and nextcloud is reachable on /nextcloud.

Now I want to have nextcloud be reachable on the main FQDN, which is NOT a virtual host.

Any tips pls?


I’ve seen this Redirect root to a subdirectory but that redirects so the URL is, where I want the the FQDN as URL.

I think this is what you’re lokking for:


Hi @flatspin, thanks for the references. However, they all cover creating new virtual hosts, where my system FQDN is already (set as server name). So if I browse to I get the Nethserver success page, and I want to see Nextcloud login page without /nextcloud in the URL.

Thanks for your time!

Not exactly what you’re looking for, but an easy way to make this happen would be to change the main system FQDN. I don’t know that there’s a direct, supported way to do what you’re asking for.

1 Like

Thanks Dan,

here is my objective: as main system FQDN, so all (LDAP) users have the correct email address in LDAP and thus in Nextcloud. Relay Nextcloud messages (Basic settings) to the other (i have no control, just a mail account on that side).

Have users login and see only a clean URL

There needs to be NO website on, only direct access to nextcloud.

as a test, setting the virtualhost for nextcloud and renaming zz_nextcloud.conf to make it load before nethserver.conf might make nextcloud be the default virtual host, but break things like access to FQDN/server-manager url and maybe more…

I think you can do it with a html-redirection. The code of the site you have to safe as /var/www/html/ should look like the following:

<html lang="en-US">
        <meta charset="UTF-8">
        <meta http-equiv="refresh" content="0; url=">
        <script type="text/javascript">
            window.location.href = ""
        <title>Page Redirection</title>
        <!-- Note: don't tell people to `click` the link, just tell them that it is a link. -->
        If you are not redirected automatically, follow this <a href=''>link to</a>.

Name of the file has to be index.html

1 Like

@LayLow Did you solve it?

@m.traeumner thanks, no, not yet. I use the redirect atm but that ofcourse shows once redirected.

A reverse proxy with Apache or NGinx would solve the domain and url problem, can you use one of them?

1 Like

I guess so, I have the default NS7 apache and the nginx module of @mrmarkuz installed for Onlyoffice integration with Nextcloud.

Any directions much appreciated!


I tried that without success.
I am afraid that reverse proxying to the same host at same HTTPS port won’t work.

Did you try this one? It’s working for me:

1 Like