[solved]Subdomain/folder config


I am trying to install nextcloud and I’m facing a problem with my subdomain/folder config.
I access Nextcloud at the address http://cloud.xxx.com/index.php but nextcloud is trying to retreive all js/css files from: http://cloud.xxx.com/cloud/file.js and not from http://cloud.xxx.com/file.js

I have created my subdomain like this:

Alias /cloud /home/pi/cloud
<Directory /home/pi/cloud>
  Options +FollowSymlinks
  AllowOverride All
        Require all granted
 <IfModule mod_dav.c>
  Dav off

 SetEnv HOME /home/pi/cloud
 SetEnv HTTP_HOME /home/pi/cloud



<VirtualHost *:80>
    ServerName cloud.xxx.fr
    ServerAdmin postmaster@xxx.fr

    ProxyPass /
    ProxyPassReverse /
    ProxyRequests Off

sudo a2ensite cloud.xxx.fr.conf

I tried to install the latest version by unziping file and with the web-installer and I get the same problem.

If I still submit the config form, it just try to access different url and refresh all the time http://cloud.assouly.fr/cloud/index.php/index.php

Any idea?

Thanks !!

I have changed my configuration and now it’s ok:
Nothing on apache2.com

Fror the vitual host:

<VirtualHost *:443>
	DocumentRoot /home/pi/cloud
	ServerName cloud.assouly.fr
	<Directory /home/pi/cloud>
		Options FollowSymLinks MultiViews
		AllowOverride all
		Require all granted
		SetEnv HOME /home/pi/cloud
		SetEnv HTTP_HOME /home/pi/cloud
	SSLEngine on
	SSLCertificateFile    /etc/letsencrypt/live/www.assouly.fr/fullchain.pem
	SSLCertificateKeyFile   /etc/letsencrypt/live/www.assouly.fr/privkey.pem