24 lines
502 B
Plaintext
24 lines
502 B
Plaintext
location = /favicon.ico {
|
|
log_not_found off;
|
|
access_log off;
|
|
}
|
|
|
|
location = /robots.txt {
|
|
allow all;
|
|
log_not_found off;
|
|
access_log off;
|
|
}
|
|
|
|
# Directives to send expires headers and turn off 404 error logging.
|
|
location ~* \.(js|css|png|jpg|jpeg|gif|ico|html)$ {
|
|
expires 24h;
|
|
}
|
|
|
|
# Deny all attempts to access hidden files such as .htaccess, .htpasswd, .DS_Store (Mac).
|
|
location ~ /\. {
|
|
deny all;
|
|
access_log off;
|
|
log_not_found off;
|
|
}
|
|
|