我遵循https://madurad.wordpress.com/2014/04/25/redirect-http-to-https-with-wamp-server/在我的wampserver.When中设置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配置
<Directory "C:/wamp/www/">
Options Indexes FollowSymLinks MultiViews
Override All
Order allow,deny
allow from all
SSLOptions +StdEnvVars
</Directory>我怎样才能纠正错误?
发布于 2015-03-31 23:22:14
没有override参数!
我认为你的意思是AllowOverride所以试试
<Directory "C:/wamp/www/">
Options Indexes FollowSymLinks MultiViews
AllowOverride All <-- fix1
Order allow,deny
allow from all
SSLOptions +StdEnvVars
</Directory>此外,Apache2.4将Order...和Allow ...的语法更改为Require ...
所以语法应该是
<Directory "C:/wamp/www/">
Options Indexes FollowSymLinks MultiViews
AllowOverride All <-- fix1
Require all granted <-- fix2
SSLOptions +StdEnvVars
</Directory>https://stackoverflow.com/questions/29371550
复制相似问题