Changing DocumentRoot to /nextcloud

Environment: Ubuntu 20.04, Apache2, NOT Docker, NOT Snap, latest version of NextCloud I can’t find the exact build number because NextCloud doesn’t list that in the About screen

i want my url to say and not

every google search says change the DocumentRoot in /etc/apache2/sites-enabled/default-ssl.conf from /var/www/html to /var/www/html/nextcloud

but that’s not where the default install of nextcloud lives…

my head hurts and i’m going to bed

Hi @whitewiz , in my case i have set nextcloud directory into /var/www/html ( so i have /var/www/html/nextcloud with all files of nextcloud inside).
For having access to nextcloud using your domain name without /nextcloud, you just have to this line from your nextcloud.conf in /etc/apache2/sites-available/

Alias /nextcloud "/var/www/html/nextcloud/"

if you have an nextcloud.conf for https ( like nextcloud-le-ssl.conf if you are using let’s encrypt ) you need to edit this file too.

My nextcloud.conf ( for http ) in /etc/apache2/sites-available/ :
<VirtualHost *:80>
DocumentRoot /var/www/html/nextcloud/
ServerName xxxxxx

<Directory /var/www/html/nextcloud/>
        Options +FollowSymlinks
        AllowOverride All
        Require all granted
          <IfModule mod_dav.c>
            Dav off
        SetEnv HOME /var/www/html/nextcloud
        SetEnv HTTP_HOME /var/www/html/nextcloud

     ErrorLog ${APACHE_LOG_DIR}/error.log
     CustomLog ${APACHE_LOG_DIR}/access.log combined

RewriteEngine on
RewriteCond %{SERVER_NAME} =xxxxxxxxx
RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]

Restart apache2 and maybe delete cookies from your domain name on your web browser.

So where is it?

I was hoping someone from the community would be kind enough to guide me on how to find that information. Nextcloud v20.0.7 PHP v7.4.3 sqlite3 v3.31.1

@whitewiz which informations?
Have you read my comment above ?

You said that you did not use Docker or snap but didn’t say what installation method you did use. Is this a manual installation? If so, only you know where you unpacked the tarball.

/var/www/html is the default web root on many systems. If your installation is showing up at /nextcloud, and this was not intentional, then you most likely have it unpacked in a folder under your web root called nextcloud. But you indicated that is not the case. More details about your setup are needed.

By the way, consider carefully whether you want to use sqlite. The database is not something easily changed later.