Zhang Jiuan’ Notes

apache配置(如何禁止列出目录内容)

只需要将访问目录的Options 内部的Indexes去掉即可。
        <Directory /home/blog/piwigo-2.0.5>
                #Options Indexes FollowSymLinks MultiViews
                Options FollowSymLinks MultiViews
                AllowOverride all
                Order allow,deny
                allow from all
        </Directory>
If you enjoyed this post, make sure you subscribe to my RSS feed!

lighttpd配置大全

转载:http://hi.baidu.com/terry_sky/blog/item/69915baf583058fcfbed50be.html
lighttpd.conf配置大全
2008-11-07 14:42

############ Options you really have to take care of ####################
## modules to load
# at least mod_access and mod_accesslog should be loaded
# all other module should only be loaded if really neccesary
# - saves some time
# - saves memory
server.modules              = (
#                               “mod_rewrite”,
#                               “mod_redirect”,
#                               “mod_alias”,
                               “mod_access”,
                    “mod_cache”, # add
#                               “mod_cml”,
#                               “mod_trigger_b4_dl”,
#                               [...]

,

返回顶部