2013-08-02 159 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

配置之間沒有區別。