图片不会加载到https上,网站会在某些链接上出现故障

时间:2013-05-08 09:22:38

标签: apache .htaccess drupal https

我遇到问题的网站是www.trommelo.org,它使用DRUPAL作为CMS。我在CHROME @ https://trommelo.org访问该网站时遇到问题。

在http(在某些链接上)时出现此错误:

错误107(net :: ERR_SSL_PROTOCOL_ERROR):SSL协议错误。

浏览器上的“输入”字段会更改https连接上我的服务器的路径。

我在Rackspace的支持下发言,结论是.htaccess文件。他们说只有http支持,而不是https支持js和css with gzip。

我可以/应该放在这里的https代码行吗?非常感谢,提前感谢。

<IfModule mod_headers.c>
  # Serve gzip compressed CSS files if they exist and the client accepts gzip.
  RewriteCond %{HTTP:Accept-encoding} gzip
  RewriteCond %{REQUEST_FILENAME}\.gz -s
  RewriteRule ^(.*)\.css $1\.css\.gz [QSA]

  # Serve gzip compressed JS files if they exist and the client accepts gzip.
  RewriteCond %{HTTP:Accept-encoding} gzip
  RewriteCond %{REQUEST_FILENAME}\.gz -s
  RewriteRule ^(.*)\.js $1\.js\.gz [QSA]

  # Serve correct content types, and prevent mod_deflate double gzip.
  RewriteRule \.css\.gz$ - [T=text/css,E=no-gzip:1]
  RewriteRule \.js\.gz$ - [T=text/javascript,E=no-gzip:1]

 <FilesMatch "(\.js\.gz|\.css\.gz)$">
   # Serve correct encoding type.
   Header set Content-Encoding gzip
   # Force proxies to cache gzipped & non-gzipped css/js files separately.
   Header append Vary Accept-Encoding
 </FilesMatch>
</IfModule>

0 个答案:

没有答案