2015-03-31 118 views
0

我跟着https://madurad.wordpress.com/2014/04/25/redirect-http-to-https-with-wamp-server/設置SSL在我wampserver.When我測試配置,我得到了一個錯誤:wampserver的Apache 2.4.9配置SSL不工作

C:\wamp\bin\apache\apache2.4.9\bin>httpd -t 
AH00526: Syntax error on line 213 of C:/wamp/bin/apache/apache2.4.9/conf/extra/h 
ttpd-ssl.conf: 
Invalid command 'Override', perhaps misspelled or defined by a module not includ 
ed in the server configuration 

有我的配​​置在部分213行,這是目錄.... /目錄配置。

<Directory "C:/wamp/www/"> 
    Options Indexes FollowSymLinks MultiViews 
    Override All 
    Order allow,deny 
    allow from all 
    SSLOptions +StdEnvVars 
</Directory> 

我該如何解決這個錯誤?

回答

0

沒有override參數!

我想你的意思是AllowOverride所以儘量

<Directory "C:/wamp/www/"> 
    Options Indexes FollowSymLinks MultiViews 
    AllowOverride All        <-- fix1 
    Order allow,deny 
    allow from all 
    SSLOptions +StdEnvVars 
</Directory> 

另外的Apache 2.4改變了Order...Allow ...的語法Require ...

所以語法應該是

<Directory "C:/wamp/www/"> 
    Options Indexes FollowSymLinks MultiViews 
    AllowOverride All        <-- fix1 
    Require all granted       <-- fix2 
    SSLOptions +StdEnvVars 
</Directory>