2013-08-02 125 views
1

我试图在我的WordPress网站上启用SSL,并且遇到了一些困难。我已经通过wordpress ssl插件启用了ssl管理(很好的评论),并且还需要其他页面的ssl。管理面板与https一样运行良好,主页和其他几页也一样。然而许多人,即我用动态的PHP插件,我写生成的页面,我得到一个404错误:使用SSL的某些页面上的404错误

Not Found

The requested URL /create/5 was not found on this server.

Apache/2.2.22 (Ubuntu) Server at upsmart.com Port 443

接近于还没有工作到目前为止,包括:

我在服务器上启用了mod重写功能,我试着更改仪表板中的站点url以明确地为https://并且我扫描了php的硬编码实例http://

真的在这一个挠我的头,所以任何想法,将不胜感激。

仅供参考我在Ubuntu 12.04上使用Apache。

更新! 我检查我的Apache的错误日志,并与下面的消息出来了:

File does not exist: /home/user/www/create

我见状也就是“嗯,当然它没有反应。如果我想要得到它得到它。 http://example.com/create/为什么它会读作〜/ www /创建?

回答

0

请允许我稍微脸红一下;我对上述问题的更新允许我猜这个问题,但我会把它放下以防其他人遇到问题

我发现我只有一半配置文件/ etc/apache2/si /默认启用SSL TES-

文件开始,如下所示:

ServerAdmin [email protected]

DocumentRoot /home/sam/www 
    <Directory /> 
      Options FollowSymLinks 
      AllowOverride None 
    </Directory> 
    <Directory /home/sam/www/> 
      Options Indexes FollowSymLinks MultiViews 
      AllowOverride none 
      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> 

的问题是,第二的AllowOverride需要从没有改变所有。所以它看起来像这样。

ServerAdmin [email protected]

DocumentRoot /home/sam/www 
    <Directory /> 
      Options FollowSymLinks 
      AllowOverride None 
    </Directory> 
    <Directory /home/sam/www/> 
      Options Indexes FollowSymLinks MultiViews 
      AllowOverride none 
      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> 

提个醒:启用站点这必须进行配置,即使你已经完成了这个对其他SSL像000默认。

0

配置之间没有区别。