Running more than one website while using nextcloud?

Hi guys,

I managed a while ago to setup my Nextcloud on my Raspberry Pi 3. Now it is time to move on for me because I have more than one web-project ongoing. But how do I set up my Apache2 config? I have absolutely no idea! Current tries underneath…

Thanks for your help,
SchoolGuy

nextcloud.conf

Alias / "/var/www/nextcloud/"
<Directory /var/www/nextcloud/>
   Options +FollowSymlinks
   AllowOverride All

   <IfModule mod_dav.c>
      Dav off
   </IfModule>

 SetEnv HOME /var/www/nextcloud
 SetEnv HTTP_HOME /var/www/nextcloud

 </Directory>

nextcloud.mydomain.de

<VirtualHost *:80>
    ServerName nextcloud.mydomain.de
    ServerAdmin webmaster@mydomain.de

    DocumentRoot "/var/www/nextcloud/"

    ErrorLog /var/log/apache2/error.log
    CustomLog /var/log/apache2/nextcloud.mydomain combined
    LogLevel Info
</VirtualHost>

mydomain.conf

<VirtualHost *:80>
    ServerName mydomain.de
    ServerAdmin webmaster@mydomain.de

    DocumentRoot "/var/www/mydomain/html"

    ErrorLog /var/log/apache2/error.log
    CustomLog /var/log/apache2/mydomain combined
    LogLevel Info
</VirtualHost>

Hmm, you do not need to set the Nextcloud folder as root folder. The Nextcloud vhost together with config.php should do the job for cloud.domsin.eg. Just configure another vhost with different directory/Alias config should do the job, or do I misunderstand something?

Ok, turns out that I forgot to put domain endings to my sites (it’s intranet only currently). Now I am other errors, but they are now more specific to nextcloud. Thanks for your help!