幸福飞过海 - 隐藏文件 https://fengqi.me/tag/%E9%9A%90%E8%97%8F%E6%96%87%E4%BB%B6/ zh-CN Fri, 01 Nov 2013 15:20:00 +0000 Fri, 01 Nov 2013 15:20:00 +0000 [总结]Mac OS X显示隐藏文件 https://fengqi.me/unix/173.html https://fengqi.me/unix/173.html Fri, 01 Nov 2013 15:20:00 +0000 风起 打开命令行, 输入以下命令(井号后面的不用复制):

defaults write com.apple.finder AppleShowAllFiles  YES && killall Finder # 打开
defaults write com.apple.finder AppleShowAllFiles  NO && killall Finder #关闭

就是这么简单

]]>
0 https://fengqi.me/unix/173.html#comments https://fengqi.me/feed/tag/%E9%9A%90%E8%97%8F%E6%96%87%E4%BB%B6/
[转载]nginx关闭favicon.ico 日志记录 禁止访问隐藏文件 https://fengqi.me/php/103.html https://fengqi.me/php/103.html Sun, 11 Nov 2012 13:30:00 +0000 风起 原文链接: nginx关闭favicon.ico 日志记录 禁止访问隐藏文件

把以下配置放到 server {} 块.

关闭favicon.ico不存在时记录日志

location /favicon.ico {
    log_not_found off;
    access_log off;
}

不允许访问隐藏文件例如 .htaccess, .htpasswd, .DS_Store (Mac).

location ~ /\. {
    deny all;
    access_log off;
    log_not_found off;
}


]]>
0 https://fengqi.me/php/103.html#comments https://fengqi.me/feed/tag/%E9%9A%90%E8%97%8F%E6%96%87%E4%BB%B6/