我想将我的网站从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
)设置为“everything”,但是然后网站就会出现无限的303
错误,重定向到自身。(事后想想:我很惊讶这里出现了303
而不是301
。如果有人能解释一下,我会很感激的)
(Laoneo提出了一些解决方案,但并没有成功。为了完整起见,在此列出)
- 将
$live_site
配置为https
URL。 - 尝试更改
$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