Remove Nextcloud from root dir

I successfully installed Nextcloud on my domain, and now it is available on The problem is that is also available on Can I remove it from there and host something else there?

4 Replies

Change your web server configuration to eliminate the 2nd url. Since you don’t say what web server you use or show your configuration, that exercise is left to you.

— sw

How can I obtain that info? I am using NextCloud from the marketplace. All I know it is a Debian 10 machine.


  1. Connect with ssh(1)
  2. ps -ef | grep apache2

If you get info back from this, you're running apache2(8). If not, you're running some other web server.

For apache2(8), the configuration is kept in /etc/apache2/sites-enabled… Look for a file with the phrase nextcloud in it or grep -l cloud /etc/apache2/sites-enabled/*. If you get something back, edit that file. Once you get done editing, save the file and restart apache2(8) (sudo systemctl restart apache2). You're probably going to have to do some of this with sudo. If you made any mistakes, you'll get errors from systemctl telling you that the restart failed (but it won't tell you why).

You can check the syntax of your apache2(8) configuration with sudo apache2ctl configtest. It would be a good idea to do this however many times you need before attempting a restart with systemctl. If systemctl fails, your web server will be down.

If you're running some other web server (e.g., nginx, Litespeed, etc), you're on your own. I don't have a clue where the others keep their configuration. Maybe someone else has information about that…

-- sw

That was more than I hoped for! Thank you so much!


Please enter an answer

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct