Skip to content

Instantly share code, notes, and snippets.

View lukeburden's full-sized avatar
🦕

Luke Burden lukeburden

🦕
View GitHub Profile
@lukeburden
lukeburden / nginx_blog.conf
Last active August 20, 2019 10:49
Nginx Reverse Proxy for Wordpress with Caching
proxy_cache_path /var/nginx/cache levels=1:2 keys_zone=blog_cache:1m max_size=100m inactive=60m use_temp_path=off;
server{
listen 80;
server_name example.com;
# prevent forwarding of cookies
proxy_set_header Cookie "";
# prevent passing of WP cookie back to client