LibreOffice Online / apache virtual host configuration


I’m looking for an apache 2.4 expert, that can help to setup LibreOffice Online proxy in alternative way.

I run a drupal web site for which I have set up an apache 2.4 virtual https host. For this virtual host I have a public domain and a comodo certificate registered by namecheap.

virtual host for the drupal website:

<VirtualHost *:443>
	ServerAdmin webmaster@localhost

	DocumentRoot /path/to/

	ErrorLog /path/to/
	CustomLog /path/to/ combined

	SSLEngine on

	SSLCertificateFile	/etc/apache2/ssl/
	SSLCertificateKeyFile /etc/apache2/ssl/
	SSLCertificateChainFile /etc/apache2/ssl.crt/comodo.chain.crt

	<FilesMatch "\.(cgi|shtml|phtml|php)$">
			SSLOptions +StdEnvVars
	<Directory /usr/lib/cgi-bin>
			SSLOptions +StdEnvVars

	BrowserMatch "MSIE [2-6]" \
			nokeepalive ssl-unclean-shutdown \
			downgrade-1.0 force-response-1.0
	BrowserMatch "MSIE [17-9]" ssl-unclean-shutdown

	# redirect www to non-www
	RewriteEngine On
	RewriteCond %{HTTP_HOST} !^$
	RewriteCond %{HTTP_HOST} ^www\.(.+)$ [NC]
	RewriteRule ^/?(.*) https://%1/$1 [R=301,L]

	# alias to owncloud server
	Alias /cloud "/path/to/"
	<Directory "/path/to/">
		Options Indexes FollowSymLinks
		AllowOverride All
		Require all granted			


So I can conect to the nextcloud server using the URL and the url stays (which would change if I use Redirect /cloud …

Now I would like to integrate/combine the LibreOffice Online proxy in a way that I can still connect to nextcloud to the alias /cloud …

Because I’m not an apache expert how can I integrate the SSLProxy* and ProxyPass* settings for LibreOffice Online to stay with the URL

Any hints would be welcome!!

Kind regards, go4ncloud