Nextcloud on main FQDN


(HF) #1

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?


(HF) #2

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

(Ralf Jeckel) #3

I think this is what you’re lokking for:


(HF) #4

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!

(Dan) #5

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.

(HF) #6

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.

(Marc) #7

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…

(Michael Träumner) #8

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

(Michael Träumner) #9

@LayLow Did you solve it?

(HF) #10

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

(Sergio Luiz) #11

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

(HF) #12

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!


(Markus Neuberger) #13

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: