Skip to content

Instantly share code, notes, and snippets.

View wuxmedia's full-sized avatar
🏠
Working from home

Tom Hardy wuxmedia

🏠
Working from home
View GitHub Profile
@wuxmedia
wuxmedia / default.vlc
Last active October 4, 2019 19:39
Generic-ish varnish 4 config, with wordpress, cms and other tweaks. courtesy of JT
# Define which version of VCL we're running:
vcl 4; # Import used modules:
import std;
# Default backend definition. Set this to point to your content server. # Varnish can support basic loadbalancing & healthchecks
backend default { .host = "127.0.0.1";
.port = "8080";
@wuxmedia
wuxmedia / wget.txt
Last active February 11, 2019 09:46 — forked from suzannealdrich/wget.txt
wget spider cache warmer
wget --spider -o wget.log -e robots=off -r -l 5 -p -S --header="X-Bypass-Cache: 1" --limit-rate=200k live-mysite.gotpantheon.com
# Options explained
# --spider: Crawl the site
# -o wget.log: Keep the log
# -e robots=off: Ignore robots.txt
# -r: specify recursive download
# -l 5: Depth to search. I.e 1 means 'crawl the homepages'.  2 means 'crawl the homepage and all pages it links to'...
# -p: get all images, etc. needed to display HTML page
# -S: print server response
@wuxmedia
wuxmedia / .htaccess
Created April 27, 2016 12:57 — forked from ScottPhillips/.htaccess
Common .htaccess Redirects
#301 Redirects for .htaccess
#Redirect a single page:
Redirect 301 /pagename.php http://www.domain.com/pagename.html
#Redirect an entire site:
Redirect 301 / http://www.domain.com/
#Redirect an entire site to a sub folder
Redirect 301 / http://www.domain.com/subfolder/