Hello.
I have setup a nextcloud server on Rocky Linux 8.6. The Server is getting network from a pfsense firewall/router. There I have setup a CA and created certificates from my nextcloud server and I am trying to enable ssl/https. What I did was:
-
I downloaded the cert_CA.crt, cert.crt, cert.key to Rocky Linux from pfsens cert manager
-
I copied cert_CA.crt, cert.crt in /etc/pki/tls/certs and cert.key in /etc/pki/tls/private
-
I created nextcloud.conf like this:
<VirtualHost *:80>
ServerName cloud.ak.net
ServerAlias www.cloud.ak.net
Redirect "/" "https://cloud.ak.net/"
</VirtualHost>
<VirtualHost *:443>
SSLEngine on
# The path to the complete chain of your SSL certificate
SSLCertificateFile /etc/pki/tls/certs/AK.crt
# The path to the private key
SSLCertificateKeyFile /etc/pki/tls/private/AK.key
# The path to the content of your website.
<Directory /var/www/html/nextcloud>
AllowOverride All
</Directory>
# The path to the content of your website
DocumentRoot /var/www/html/nextcloud/Data
# Domain name of your website
ServerName cloud.ak.net
ServerAlias www.cloud.ak.net
</VirtualHost>
I restarted httpd but I cannot connect.
Can Anyone help?
Thank you Allfor any help