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
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
</IfModule>
SetEnv HOME /var/www/html/nextcloud
SetEnv HTTP_HOME /var/www/html/nextcloud
</Directory>
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]
</VirtualHost>
Restart apache2 and maybe delete cookies from your domain name on your web browser.
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.