title: NGINX - Blog (index page) within site gets redirected through proxy correctly, but all sub-sites do not have the same redirect
body: <p>NGINX noob here, so please pardon my ignorance; I have a server running a DJANGO site, and WordPress blog in a Docker container within the same server; This is the way I have currently set up my NGINX configuration file:</p>
  
  <pre><code>server {
      listen 80;
      server_name 123.45.67.89;
  
      location = /favicon.ico { access_log off; log_not_found off; }
      location /static/ {
          root /home/johndoe/djangosite;
      }
  
      location / {
          include         uwsgi_params;
          uwsgi_pass      unix:/home/johndoe/djangosite/djangosite.sock;
      }
  
       location /blog {
  
          rewrite ^/blog(.*) /$1 break;
          proxy_pass "http://127.0.0.1:8001";
      }
  }
  </code></pre>
  
  <p>So using this NGINX configuration, accessing my server <code>123.45.67.89</code>, successfully brings up my Django site, and I'm able to use it to its full extent; accessing <code>123.45.67.89/blog</code>, takes me to my WordPress blog page (the blog index); at this point, clicking anything more within the WordPress blog (like a blog post, or the WP Admin site, or anything else related to the WordPress blog), will change the URL to: <code>123.45.67.89:8001/wp-login.php</code> instead of <code>123.45.67.89/blog/wp-login.php</code>.</p>
  
  <p>How can NGINX be configured to use the blog url path, for everything related to the WordPress sub-site, and not just the WordPress index page? I want the port 8001, that keeps showing up in all WordPress URLs to be instead replaced with "/blog/", like it currently does on the blog index page? Is that at all possible?</p>
  
  <p>Any help would be greatly appreciated! Thank you!</p>