我试图在我的 .htaccess 文件中指定 SSLCipherSuite,但更改似乎没有生效。我在共享主机帐户上运行,因此只能访问 .htaccess,而不能访问服务器/虚拟主机配置文件。Apache 文档说这个指令在 .htaccess 上下文下工作。我的服务器正在运行 Apache 2.2。这是我完整的 .htaccess 文件:
RewriteEngine on
ErrorDocument 404 /404.html
# map index.html to root dir
RewriteCond %{HTTP_HOST} ^automsw\.com$ [OR,NC]
RewriteCond %{HTTP_HOST} ^www\.automsw\.com$ [NC]
RewriteRule ^index\.html$ "https\:\/\/www\.automsw\.com\/" [R=301,L]
# map index.html in sub-directories to that directory
RewriteCond %{HTTP_HOST} ^automsw\.com$ [OR,NC]
RewriteCond %{HTTP_HOST} ^www\.automsw\.com$ [NC]
RewriteRule ^(.*)/index\.html$ "https\:\/\/www\.automsw\.com\/$1/" [R=301,L]
# map non-www to www and http to https
RewriteCond %{HTTPS} off [OR]
RewriteCond %{HTTP_HOST} ^automsw.com$ [NC]
RewriteRule ^(.*)$ "https\:\/\/www\.automsw\.com\/$1" [R=301,L]
#SSLCipherSuite "EECDH+ECDSA+AESGCM EECDH+aRSA+AESGCM EECDH+ECDSA+SHA384 …Run Code Online (Sandbox Code Playgroud)