2016-05-29 119 views
1

感謝這裏的驚人社區,我能夠通過https使我的EC2實例工作。有關此問題的上下文,請參閱我以前的post切換到HTTPS後無法登錄PHPmyAdmin

現在,我無法登錄到PHPmyAdmin。儘管我加載登錄屏幕上https://開頭,我重定向到https://mywebsite.co:80/phpmyadmin/index.php

這說明我的登錄屏幕與鉻此錯誤

This site can’t provide a secure connection ERR_SSL_PROTOCOL_ERROR

我嘗試了這些solutions但可以」沒有任何東西與我的實例一起工作。

這看起來很有希望

RewriteEngine On RewriteCond %{SERVER_PORT} !^443$ RewriteRule ^/phpmyadmin(.*)$ https://%{HTTP_HOST}/phpmyadmin$1 [L,R]

,但我無法弄清楚如何我目前的配置文件目它

<VirtualHost *:80> 
ServerAdmin [email protected] 
DocumentRoot /var/www/html/ 
RewriteEngine On 
RewriteCond %{HTTP:X-Forwarded-Proto} !https 
RewriteRule ^.*$ https://%{SERVER_NAME}%{REQUEST_URI} 

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

+1

您需要一個帶有SSL證書的安全虛擬主機''。 –

+0

@JeffPuckettII我的ec2實例附帶了一個單獨的文件來處理這個......我想。它以'開頭 \t ' –

回答

1

你也可以去掉:從80的URL。