Print permissions in a way that is suitable for executing again
for i in *
do
echo chown $(stat -c%U:%G $i) $i
echo chmod $(stat -c%a $i) $i
done
/path/to/*.log { | |
size 10M | |
rotate 10 | |
create | |
compress | |
delaycompress | |
dateext | |
dateformat -%Y%m%d-%s | |
} |
Print permissions in a way that is suitable for executing again
for i in *
do
echo chown $(stat -c%U:%G $i) $i
echo chmod $(stat -c%a $i) $i
done
Nginx
set $stupid_spider "";
# If the request comes from one of these stupid spiders
if ($http_user_agent ~* (stupid|spider)) {
set $stupid_spider "1";
}