Hi,
I want to set a virtualhost in apache for Collabora (Nextcloud and Collabora are install in the same Ubuntu server)
NC work perfectly in https:
<VirtualHost *:80>
ServerName cloud.xxx.fr
Redirect permanent / https://cloud.xxx.fr/
</VirtualHost>
<VirtualHost _default_:443>
DocumentRoot "/var/www/nextcloud"
ServerName cloud.xxx.fr
ServerAlias xxx.fr
ErrorLog ${APACHE_LOG_DIR}/nextcloud.error
CustomLog ${APACHE_LOG_DIR}/nextcloud.access combined
SSLEngine on
SSLCertificateFile /etc/ssl/xxx.cer
SSLCertificateKeyFile /etc/ssl/xxx.key
SSLCACertificateFile /etc/ssl/Intermediate-.xxx.fr.crt
<Directory /var/www/nextcloud/>
Require all granted
Options FollowSymlinks MultiViews
AllowOverride All
# <IfModule mod_dav.c>
# Dav off
# </IfModule>
<IfModule mod_headers.c>
Header always set Strict-Transport-Security "max-age=15552000; includeSubDomains"
</IfModule>
SetEnv HOME /var/www/nextcloud
SetEnv HTTP_HOME /var/www/nextcloud
Satisfy Any
</Directory>
</VirtualHost>
When Collabora virtualhost is set in port 80 I have this page:
But I need to set it in 443 if I want that it work with nextcloud:
<VirtualHost *:443>
ServerName collabora.xxx.fr:443
SSLEngine on
SSLCertificateFile /etc/ssl/xxx.cer
SSLCertificateKeyFile /etc/ssl/xxx.key
SSLCACertificateFile /etc/ssl/Intermediate-.xxx.fr.crt
SSLProtocol all -SSLv2 -SSLv3
SSLCipherSuite ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256>
SSLHonorCipherOrder on
AllowEncodedSlashes NoDecode
SSLProxyEngine On
SSLProxyVerify None
SSLProxyCheckPeerCN Off
SSLProxyCheckPeerName Off
ProxyPreserveHost On
ProxyPass /loleaflet https://127.0.0.1:9980/loleaflet retry=0
ProxyPassReverse /loleaflet https://127.0.0.1:9980/loleaflet
ProxyPass /hosting/discovery https://127.0.0.1:9980/hosting/discovery retry=0
ProxyPassReverse /hosting/discovery https://127.0.0.1:9980/hosting/discovery
ProxyPass /hosting/capabilities https://127.0.0.1:9980/hosting/capabilities retry=0
ProxyPassReverse /hosting/capabilities https://127.0.0.1:9980/hosting/capabilities
ProxyPassMatch "/lool/(.*)/ws$" wss://127.0.0.1:9980/lool/$1/ws nocanon
ProxyPass /lool/adminws wss://127.0.0.1:9980/lool/adminws
ProxyPass /lool https://127.0.0.1:9980/lool
ProxyPassReverse /lool https://127.0.0.1:9980/lool
</VirtualHost>
I can not understand but I have the “apache2 ubuntu default page” with this 443 conf…
does anyone have an idea?