开发者

CakePHP and SSL

开发者 https://www.devze.com 2023-03-22 15:26 出处:网络
I just installed a SSL certificate on my website that uses CakePHP and now the site doesn\'t load anymore files from webroot (images, css files). Any ideas? I think SSL installation af开发者_开发知识库

I just installed a SSL certificate on my website that uses CakePHP and now the site doesn't load anymore files from webroot (images, css files). Any ideas? I think SSL installation af开发者_开发知识库fected mod_rewrite, or something like this.


I just ran into this problem. Check your sites configuration for apache2. Make sure:

AllowOverride all

is set to allow .htaccess overrides under ssl. Here is my snippet of my config (on 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>
0

精彩评论

暂无评论...
验证码 换一张
取 消