刚安装的 OwnCloud 会加载空白页

刚安装的 OwnCloud 会加载空白页

我使用的是 Ubuntu 20.04,我刚刚在我的 lamp 安装中安装了最新版本的 owncloud,位于/var/www/html/owncloud/

问题:owncloud 提供空白页https://someothersite.org/

有用信息:我已经有多个 wordpress 安装使用 OpenSSL 证书指向/var/www/html/端口 443

我通过将 phpmyinfo.php 添加到/var/www/html/owncloud/目录来测试我的 SSL,并成功访问了 URL,https://someothersite.org/phpmyinfo.php因此 SSL 警告不会导致 SSL 阻止目录中的文件。我怀疑问题不是由 SSL 引起的。

在我的owncloud.conf档案中我有:

<VirtualHost *:443>
    ServerName someothersite.org 
    ServerAlias www.someothersite.org 

    # If this is the default configuration file we can use: 'ServerName localhost' or also 'ServerAlias localhost'.

    ServerAdmin [email protected]

    ErrorLog ${APACHE_LOG_DIR}/someothersite.org.error.log
    CustomLog ${APACHE_LOG_DIR}/someothersite.org.access.log combined

    DocumentRoot /var/www/html/owncloud/

    <Directory /var/www/html/owncloud>
        Options None FollowSymLinks
        # Enable .htaccess Overrides:
        AllowOverride All
        Order allow,deny
        Allow from all
        Require all granted
    </Directory>

    #My Edit
    SSLEngine on
    SSLCertificateFile /etc/ssl/certs/apache-selfsigned.crt
    SSLCertificateKeyFile /etc/ssl/private/apache-selfsigned.key
</VirtualHost>

在我的default-ssl.conf档案中我有:

<IfModule mod_ssl.c>
    <VirtualHost _default_:443>
        ServerAdmin [email protected]
        ServerName localhost
            ServerAlias localhost

        DocumentRoot /var/www/html/

        ErrorLog ${APACHE_LOG_DIR}/localhost.error.log
        CustomLog ${APACHE_LOG_DIR}/localhost.access.log combined

        SSLEngine on

        SSLCertificateFile  /etc/ssl/certs/ssl-cert-snakeoil.pem
        SSLCertificateKeyFile /etc/ssl/private/ssl-cert-snakeoil.key

        <FilesMatch "\.(cgi|shtml|phtml|php)$">
                SSLOptions +StdEnvVars
        </FilesMatch>
        <Directory /usr/lib/cgi-bin>
                SSLOptions +StdEnvVars
                DirectoryIndex index.php
                AllowOverride All
                #DP Edit - I disabled these
                Order allow,deny
                Allow from all
                Require all granted
        </Directory>

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

    </VirtualHost>
</IfModule>

在我的/etc/hosts档案中我有:

127.0.0.1   localhost 
127.0.0.1   someothersite.org

在我的someothersite.org.error.log我有以下错误:

[ssl:warn] [pid 32824] AH01906: someothersite.org:443:0 server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)
[ssl:warn] [pid 32824] AH01909: someothersite.org:443:0 server certificate does NOT include an ID which matches the server name
[ssl:warn] [pid 32824] AH01906: someothersite.org:443:0 server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)
[ssl:warn] [pid 32824] AH01909: someothersite.org:443:0 server certificate does NOT include an ID which matches the server name

有小费吗?

相关内容