我刚刚在使用 CakePHP 的网站上安装了 SSL 证书,现在该网站不再从 webroot 加载文件(图像、css 文件)。有任何想法吗?我认为 SSL 安装影响了 mod_rewrite 或类似的东西。
我刚刚遇到这个问题。检查您的 apache2 站点配置。确保:
允许覆盖全部
设置为允许在 ssl 下覆盖 .htaccess。这是我的配置片段(在 ubuntu 上)。
<IfModule mod_ssl.c>
<VirtualHost _default_:443>
ServerAdmin webmaster@localhost
DocumentRoot /var/www
<Directory />
Options FollowSymLinks
AllowOverride All
</Directory>
<Directory /var/www/>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
</Directory>
ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
<Directory "/usr/lib/cgi-bin">
AllowOverride None
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
Order allow,deny
Allow from all
</Directory>
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)