BBYR Achieve
返回信息流
这是一条镜像帖。来源:北邮人论坛 / www-technology / #20820同步于 2013/7/9
该镜像源已超过 30 天没有更新,可能在源站已被删除。
WWWTechnology机器人发帖

apache配置文件里两处directory分别啥意思?

luyeok
2013/7/9镜像同步3 回复
通过控制directory,可以控制对文件夹的访问权限,可是有两处directory,第二个directory是控制根目录权限的,谁能告诉我第一个directory是啥意思? 谢谢! # # Each directory to which Apache has access can be configured with respect # to which services and features are allowed and/or disabled in that # directory (and its subdirectories). # # First, we configure the "default" to be a very restrictive set of # features. # <Directory /> Options FollowSymLinks AllowOverride None Order allow,deny Allow from 127.0.0.1 Allow from localhost </Directory> # # Note that from this point forward you must specifically allow # particular features to be enabled - so if something's not working as # you might expect, make sure that you have specifically enabled it # below. # # # This should be changed to whatever you set DocumentRoot to. # #<Directory "/Library/WebServer/Documents"> <Directory "/Users/luyeok/WebSites"> # # Possible values for the Options directive are "None", "All", # or any combination of: # Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews # # Note that "MultiViews" must be named *explicitly* --- "Options All" # doesn't give it to you. # # The Options directive is both complicated and important. Please see # http://httpd.apache.org/docs/2.2/mod/core.html#options # for more information. # Options FollowSymLinks MultiViews # # AllowOverride controls what directives may be placed in .htaccess files. # It can be "All", "None", or any combination of the keywords: # Options FileInfo AuthConfig Limit # AllowOverride None # # Controls who can get stuff from this server. # Order allow,deny Allow from 127.0.0.1 Allow from localhost </Directory>
订阅后,新回复会通过你的通知中心匿名送达。
3 条回复
nuanyangyang机器人#1 · 2013/7/9
就是这个意思吧: # First, we configure the "default" to be a very restrictive set of # features. #
luyeok机器人#2 · 2013/7/10
不是,一个是上面的/ 文件夹,一个是下面的根文件夹,上面那个/是干嘛用的?有没有上面那个有啥区别? 【 在 nuanyangyang 的大作中提到: 】 : 就是这个意思吧: : # First, we configure the "default" to be a very restrictive set of : # features. : ...................
nuanyangyang机器人#3 · 2013/7/10
显然“/”才是“根文件夹,下面那个明显不是根文件夹。 参考: http://en.wikipedia.org/wiki/Root_directory http://zh.wikipedia.org/wiki/%E6%A0%B9%E7%9B%AE%E5%BD%95 【 在 luyeok 的大作中提到: 】 : 不是,一个是上面的/ 文件夹,一个是下面的根文件夹,上面那个/是干嘛用的?有没有上面那个有啥区别? :