在https上请求apache2服务器时出现错误的请求

我有一个apache2服务器设置在443与SSL证书。 我修改了sites-available default-ssl.conf ,并更新了证书path

 <VirtualHost *:80> ServerName domain Redirect permanent / https://domain </VirtualHost> <IfModule mod_ssl.c> <VirtualHost _default_:443> ServerName domain ServerAdmin webmaster@localhost DocumentRoot /var/www/html ErrorLog ${APACHE_LOG_DIR}/error.log CustomLog ${APACHE_LOG_DIR}/access.log combined SSLEngine on SSLCertificateFile /etc/apache2/certs/filname.crt SSLCertificateKeyFile /etc/apache2/certs/filname.key SSLCACertificatePath /etc/apache2/certs/ SSLCACertificateFile /etc/apache2/certs/ca.crt <FilesMatch "\.(cgi|shtml|phtml|php)$"> SSLOptions +StdEnvVars </FilesMatch> <Directory /usr/lib/cgi-bin> SSLOptions +StdEnvVars </Directory> </VirtualHost> </IfModule> 

我已经rewritessl MODS启用。

我试图通过https://domain访问浏览器上的url

但我仍然收到

 Bad Request Your browser sent a request that this server could not understand. Reason: You're speaking plain HTTP to an SSL-enabled server port. Instead use the HTTPS scheme to access this URL, please.