【发布时间】:2013-11-13 00:51:16
【问题描述】:
我想将我的网站从 http 更改为 https。总是。
所以我相应地配置了我的 apache。现在,当我输入网站的 URL (https://steamnet.de) 时,它会很好地加载索引网站,但没有任何引用的元素(CSS、图像等)
在我看来,这样做是因为base href 设置为http://steamnet.de/,而你没有在那里使用https。我已将我的 Firefox 配置为不应加载混合内容。
那么我怎样才能告诉 Joomla 将 base href 设置为 https://steamnet.de(或者以其他方式使网站完全 ssl?)
我尝试将 joomla 配置的全局 ssl 强制元素(德语中的“SSL erzwingen”,configuration.php 中的 $force_ssl)设置为“一切”,但随后站点因无限 303 错误重定向到自身而中断。 (事后想:我很惊讶在这里找到303 而不是301。如果有人能解释一下,我将不胜感激)
(Laoneo 提出了一些解决方案,但没有成功,为了完整起见,这里是列表)
- 将
$live_site配置为httpsurl。 - 如果更改
$sef和$sef_rewrite有帮助,请调查。
apache 日志:
access.log
91.42.221.000 - - [03/Nov/2013:12:41:25 +0100] "GET / HTTP/1.1" 303 4854 "-" "Mozilla/5.0 (Gecko) Firefox/64"
91.42.221.000 - - [03/Nov/2013:12:41:25 +0100] "GET / HTTP/1.1" 303 516 "-" "Mozilla/5.0 (Gecko) Firefox/64"
91.42.221.000 - - [03/Nov/2013:12:41:25 +0100] "GET / HTTP/1.1" 303 516 "-" "Mozilla/5.0 (Gecko) Firefox/64"
error.log 不包含任何访问权限,但reload 上的以下行
[Sun Nov 03 12:41:16 2013] [notice] Graceful restart requested, doing restart
[Sun Nov 03 12:41:16 2013] [error] (9)Bad file descriptor: apr_socket_accept: (client socket)
[Sun Nov 03 12:41:17 2013] [warn] RSA server certificate CommonName (CN) `Angelo Neuschitzer' does NOT match server name!?
[Sun Nov 03 12:41:17 2013] [notice] Apache/2.2.16 (Debian) PHP/5.3.3-7+squeeze17 with Suhosin-Patch proxy_html/3.0.1 mod_ssl/2.2.16 OpenSSL/0.9.8o configured -- resuming normal operations
【问题讨论】:
标签: php apache joomla href http-status-code-303