This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* This script detects WebP support, and adds a "nowebp" class to the body element | |
* if support is not present. | |
* | |
* It uses two detections: | |
* 1) The first quick and synchroneous one checks if the browser | |
* can encode a canvas into a WebP Data URL. It returns true right away on Chrome. | |
* 2) The second longer and asynchroneous one checks if the browser | |
* can decode a lossy image WebP Data URL. It returns true on all browsers that | |
* actually support WebP. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/var/www/*/logs/*.log { | |
size 10M | |
missingok | |
notifempty | |
sharedscripts | |
delaycompress | |
postrotate | |
/sbin/service reload httpd | |
endscript | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
user www-data; | |
worker_processes auto; | |
pid /run/nginx.pid; | |
events { | |
worker_processes auto; | |
worker_connections 1024; # ulimit -n | |
multi_accept on; | |
use epoll; | |
} |