禁用对特定目录及其内容的访问
我有一个网站,其中包含几个Web应用程序。 每个Web应用程序都对应于名称以“Web”开头的文档根目录的子目录。 (例如, /WebLulzGenerator和/WebInternetHateMachine是Web应用程序,但是/MoarHelperz不是。) 我希望这些Web应用程序只能通过HTTPS提供,所以我在httpd.conf文件中做了以下操作: <Directory /> Options FollowSymLinks AllowOverride None Order allow,deny Allow from all </Directory> <DirectoryMatch "^/Web[A-Za-z0-9]+"> Order allow,deny Deny from all </DirectoryMatch> # In extra/httpd-ssl.conf, access to "^/Web[A-Za-z0-9]+" # is reenabled, but only through HTTPS. 但是,当我testing我的configuration“ http:// myip / WebTest ”正确打开。 我究竟做错了什么?