title: Nginx - wordpress in a subdirectory, what data should be passed?
body: <p>I've tried so many different things. The point I'm at right now is this:</p>
  
  <pre><code>location ^~ /wordpress {
      alias /var/www/example.com/wordpress;
      index index.php index.html index.htm;
      try_files $uri $uri/ /wordpress/index.php;
  
      location ~ \.php$ {
          include fastcgi_params;
          fastcgi_pass 127.0.0.1:9000;
          fastcgi_split_path_info ^(/wordpress)(/.*)$;
          fastcgi_param SCRIPT_FILENAME /var/www/example.com/wordpress/index.php;
          fastcgi_param PATH_INFO $fastcgi_path_info;
      }
  }
  </code></pre>
  
  <p>Right now, all resources as far as I can tell (images, etc) are loading correctly. And <code>http://www.example.com/wordpress</code> loads wordpress, but a page that says "page not found". (Wordpress is in use for this though). If I try any post urls I get the same result, "page not found". So I know the problem is that wordpress isn't obtaining the data about the path or something. Another potential problem is that if I run <code>example.com/wp-admin.php</code> then it will still run <code>index.php</code>.</p>
  
  <p>What data needs to be passed? What may be going wrong here?</p>