我正在从 Apache 的早期版本 (2.2) 升级到 Apache 2.4。我注意到有几个指令不起作用。虽然我实施了一个解决方案并且它似乎有效,但我想检查一下是否有人知道这些是否正确。
Pre 2.4 configuration
<Location /blahblah>
Order deny,allow
Deny from all
Allow from *.blahblah.com
</Location>
2.4 configuration
<Location /blahblah>
Require all denied
Require host blahblah.com
</Location>
Pre 2.4 configuration
<Location /blahblah1>
Order allow,deny
Allow from all
</Location>
2.4 configuration
<Location /blahblah1>
Require all granted
</Location>