Nginx reverse proxy to Wordpress with Laravel
nginx
evaluates location
blocks according to various rules as explained by the documentation.
To give your location /blog/
a higher precedence than location ~ \.php$
, use the ^~
modifier:
location ^~ /blog { proxy_pass http://10.2.7.3; proxy_set_header Host $host;}