Skip to content

Instantly share code, notes, and snippets.

View benpohdigital's full-sized avatar

benpohdigital

View GitHub Profile
@benpohdigital
benpohdigital / nginx.conf
Last active February 6, 2023 11:07 — forked from mckernanin/nginx.conf
Example nginx config to get WordPress uploads from remote if they don't exist locally
# save space, and grab uploads from the live site
location /app/uploads/ {
if (!-e $request_filename){
rewrite ^/app/uploads/(.*) http://yourlivesite.com/app/uploads/$1 redirect;
}
}