This file contains 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
# Google Pagespeed | |
# https://developers.google.com/speed/pagespeed/module/configuration | |
pagespeed on; | |
pagespeed FileCachePath /var/cache/ngx_pagespeed/; | |
# let's speed up PageSpeed by storing it in the super duper fast memcached | |
pagespeed MemcachedThreads 1; | |
pagespeed MemcachedServers "127.0.0.1:11211"; | |
# show half the users an optimized site, half the regular site |
This file contains 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
#!/usr/bin/env bash | |
# User must be root | |
if [[ $EUID -ne 0 ]]; then | |
echo "This script must be run as root" | |
return | |
fi | |
# Check if www-data do exist | |
q=$(id -u www-data) |