Skip to content

Instantly share code, notes, and snippets.

Avatar
🦕

Luke Burden lukeburden

🦕
View GitHub Profile
@lukeburden
lukeburden / nginx_blog.conf
Last active Aug 20, 2019
Nginx Reverse Proxy for Wordpress with Caching
View nginx_blog.conf
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