I'm having issues geting SSL running with apache2.
I've gone through a number of helpful articles:
enabled the conf file in /etc/apache2/sites-enabled as 000-default-ssl
NameVirtualHost my.ipaddress <VirtualHost my.ipaddress:443> DocumentRoot /var/www SSLEngine on #SSLOptions +StrictRequire SSLCertificateFile /etc/ssl/certs/server.crt SSLCertificateKeyFile /etc/ssl/private/server.key ServerAdmin you@example.com ErrorLog /var/log/ssl_error_log TransferLog /var/log/ssl_access_log </VirtualHost>
I generated a symbolic link in sites-enabled (000-default-ssl) to my default-ssl conf file in sites-available
I'm getting the following error in Firefox: ssl_error_rx_record_too_long My apache error log has a line: Invalid method in request \\x16\\x03
port 443 is open and listening because I can hit http://my.IP.Address:443 without errors.
So it looks like my server is listening to port 443, but it's serving up content unsecured (HTTP) which leads me to believe I've got an error in my VirtualHost conf but I can't find it.
Any suggestions?
因此,解决方法是将端口添加到我的.conf
文件中的所有NameVirtualHost
声明中:
NameVirtualHost my.i.p.address:443
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.