[英]can't see wordpress after installing SSL Cert on CENTOS 7
I have a VPS account that uses CENTOS 7. I was able to install Apache, MariaDB, PHP, and WordPress. 在我從 SSLS.com/COMMODO 安裝 SSL 證書之前,一切都運行良好。 Basically when I go to my domainname.com or IP address, I no longer see WordPress, I see the default apache page.
in in the ssl.conf file I have "DocumentRoot "/var/www/"", i know wordpress is in the var/www/html but when I change it to that wordpress works but ssl does not thanks
這就是我所做的。 我刪除了 wordpress(復制了 wp-config.php 文件)。 然后我重新安裝了 wordpress 並將 wp-config.php 文件替換為舊文件。
在我輸入的 httpd.conf 文件中: <VirtualHost *:80> ServerName mycoolexampledomain.com
輸入代碼` ServerAlias mycoolexampledomain.com
重定向永久/https://mycoolexampledomain.com/
AllowOverride All 要求全部授予<Directory "/var/www"> AllowOverride All # Allow open access: 要求所有授權
** 在 /var/www/html 中也使用了允許的覆蓋
在 ssl.conf
DocumentRoot "/var/www/html" 服務器名 mycoolexampledomain.com:443
DocumentRoot "/var/www/html" 服務器名 mycoolexampledomain.com:443
SSLCertificateFile /etc/ssl/domaincoolexample_com.crt SSLCertificateKeyFile /etc/ssl/domaincoolexample_key.key <- commodo 在一個 .txt 文件中將此發送給我,但我將其重命名為 SSLCertificateChainFile /etc/ssl/domaincoolexample.ca-bundle
然后我更改了 .htaccess 文件,因此 apache 用戶是所有者
然后在 wordpress 設置中,我將 go 設置為: https://mycooldomainexample.Z4D236D19A2D102C5FE6上的兩個通用設置
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.