Hello everyone
I have a nextcloud & apache2 server set up. Now I want to point the subdomain ‘nextcloud.mydomain.com’ to the nextcloud server while still having the main domain ‘mydomain.com’ pointing at my webserver/website. How can I do that?
I tried editing the virtual host but the subdomain ‘nextcloud.mydomain.com’ is always pointing at the webserver and not the nextcloud server.
This is what I added, but I’m not sure if I did it right:
<VirtualHost *:80>
ServerAdmin admin@mydomain.com
</VirtualHost>
<VirtualHost *:60001>
ServerName nextcloud.mydomain.com
ServerAlias nextcloud.mydomain.com
DocumentRoot /var/www/nextcloud/
</VirtualHost>
Thanks, Jan