title: request.path and url_for don't match up in Flask under mod_wsgi
body: <p>In Flask, is there a way to get the request.path that includes any "decorations" that <code>WSGI</code> or something else may add on?</p>
  
  <p>Running in the test mode (just on port 5000), my <code>request.path</code> and <code>url_for('settings')</code> match up just fine, but once under <code>WSGI</code>, as expected, my <code>url_for('settings')</code> becomes <code>/manage/settings/</code>, but the <code>request.path</code> yeilds <code>/settings/</code>.</p>
  
  <p>I have the following in my <code>httpd.conf</code> and am working on moving an <a href="https://github.com/FernFerret/servermanager" rel="nofollow noreferrer">application</a> from development into a live site.</p>
  
  <pre><code>WSGIScriptAlias /manage /sw/servermanager/servermanager.wsgi
  WSGIDaemonProcess servermgr user=user group=grp threads=4
  &lt;Directory /sw/servermanager&gt;
      WSGIProcessGroup servermgr
      WSGIApplicationGroup %{GLOBAL}
      WSGIScriptReloading On
      Order deny,allow
      Allow from all
  &lt;/Directory&gt;
  </code></pre>
  
  <p>I like the idea of having the templates be pretty generic and then display the navigation information on the fly using CSS. I've used the technique provided in <a href="https://stackoverflow.com/questions/8676455/flask-current-page-in-request-variable/8676486#8676486">this answer</a> to structure my views to this point, but the issue arises when I add <code>mod_wsgi</code> into the equation.</p>
  
  <p>I took a look around the request object and didn't see as much as I'd like other than possibly using the <code>url_rule</code> but then the parameters evaded me.</p>
  
  <p>Just for good measure, a link for the WSGI Script that I'm using: <a href="https://github.com/FernFerret/servermanager/blob/master/servermanager.wsgi" rel="nofollow noreferrer">https://github.com/FernFerret/servermanager/blob/master/servermanager.wsgi</a></p>
  
  <p>I'd also be interested in the documentation for the <code>request</code> object, I found my way around it by using the built in debugger and <code>help(request)</code>.</p>
  
  <p>EDIT: I should say, that the urls don't match up under Apache running mod_wsgi.</p>