How can I have nginx serve WordPress at /blog?
Here’s what mostly works: Have an nginx config file for the subdomain setup, and ensure that http://wordpress.example.com works. In the nginx default config, have a location block for /blog that proxies to the subdomain: location /blog { rewrite ^/blog(/?.*)$ $1 break; # remove “/blog” proxy_set_header Host wordpress.example.com; proxy_set_header X-Real-IP $remote_addr; proxy_pass http://wordpress.example.com; } In wp-config.php, … Read more