What do you use as OpenVPN web Frontend?
Basically you can open only 443 and 80 Ports for this tast. Then you have 2 ways:
-
As you mentioned to access
myadress.com/admin
andmyadress.com/nextcloud
you have to create 1 Virtual Host under Apache2 and configure 2 directories, aliases, or proxy pass to your nextcloud and openvpn Settings fronted.
In this case you will create e.g.http --> Port 80/443 on Apache2 --> OpenVPN (some other Port) or Nextcloud as directory.
-
You can register more domains e.g. cloud.myadress.com and openvpn.myadress.com and create Virtual host for each of them.
Here you can find few examples VirtualHost Examples - Apache HTTP Server Version 2.4
As mentioned here you can create config for Nexctloud e.g. under /etc/apache2/sites-enabled/nextcloud.conf
and enable it.