欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

httpd.conf - 增加目录 & Order directive

程序员文章站 2022-05-17 11:34:11
...
Alias /movies "e:/movies/"
Alias /software "e:/software/"
Alias /music "E:/mydocs/audio/"
Alias /admin "F:/"

<Directory "e:/movies/">
    Options Indexes FollowSymLinks
    AllowOverride None
    Order allow,deny
    Allow from all	
</Directory>
<Directory "e:/software/">
    Options Indexes FollowSymLinks
    AllowOverride None
    Order allow,deny
    Allow from all	
</Directory>
<Directory "E:/mydocs/audio/">
    Options Indexes FollowSymLinks
    AllowOverride None
    Order allow,deny
    Allow from all	
</Directory>
<Directory "F:/">
    Options Indexes FollowSymLinks
    AllowOverride None
    Order deny,allow
	Allow from localhost
	Deny from all
</Directory>


#
# Order指令
#http://httpd.apache.org/docs/2.2/mod/mod_authz_host.html#order
相关标签: directory