我按照https://madurad.wordpress.com/2014/04/25/redirect-http-to-https-with-wamp-server/在我的wampserver中设置了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 :(得分: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>