<div dir="ltr">Hi,<div><br></div><div>So I found a workaround, credit to <a href="http://stackoverflow.com/a/38662338">http://stackoverflow.com/a/38662338</a></div><div>TL;DR SCRIPT_NAME has to be set to "" in the environment before passing the app to WSGI.</div><div><br></div><div>So the issue seems to be that "SCRIPT_NAME" in the environment is wrong somehow.<br></div><div>Does annyone know where I should find an issue?</div><div>mod_fastcgi?</div><div>Werkzeug?</div><div>Flup?<br></div><div>Flask?<br></div><div><br></div><div>Also, I had to change the alias.url path to make sure the local path has a trailing "/". Static files can't be accessed otherwise, will submit a PR for the documentation.</div><div><br></div><div>//Erik</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Oct 13, 2016 at 3:28 PM, Erik Lindqvist <span dir="ltr"><<a href="mailto:eriksmejl@gmail.com" target="_blank">eriksmejl@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Basically a copy of the fastcgi example from the docu, minus the port binding:<div><div>$SERVER["socket"] == ":5000" {</div><div>    fastcgi.server = ("/<span style="font-size:12.8px">yourapplication</span>.fcgi" =></div><div>       ((</div><div>            "socket" => "/tmp/tti-app-fcgi.sock",</div><div>            "bin-path" => "/local/www/wwwroot/<span style="font-size:12.8px">yourapplic<wbr>ation</span>/<span style="font-size:12.8px">yourapplication</span>.fcgi",</div><div>            "check-local" => "disable",</div><div>            "max-procs" => 1</div><div>        ))</div><div>    )</div><div>  alias.url = (</div><div>      "/static/" => "/local/www/wwwroot/<span style="font-size:12.8px">yourapplic<wbr>ation</span>/static"</div><div>  )</div><div>  url.rewrite-once = (</div><div>      "^(/static($|/.*))$" => "$1",</div><div>      "^(/.*)$" => "/<span style="font-size:12.8px">yourapplication</span>.fcgi"</div><div>  )</div><div>}</div></div><div><br></div></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Oct 13, 2016 at 1:52 PM, Sébastien Billion <span dir="ltr"><<a href="mailto:sebastien.billion@gmail.com" target="_blank">sebastien.billion@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Can we see your lighthttpd conf file?</div><div class="gmail_extra"><br><div class="gmail_quote"><div><div class="m_973978289539308670h5">2016-10-13 11:21 GMT+02:00  <span dir="ltr"><<a href="mailto:badrihippo@gmail.com" target="_blank">badrihippo@gmail.com</a>></span>:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="m_973978289539308670h5">I have this same issue, with Flask 0.10.1, Werkzeug 0.11.3 and mod_wsgi. I haven't found any solution yet. But I'm guessing this means it's a generic problem (not related to version)?<blockquote type="cite">
</blockquote><div><br></div><div>The main problem is that the server directs it to that <font face="monospace">.fcgi</font> or <font face="monospace">.wsgi</font> file internally, but we don't want it to show that to the user. Django allows you to manually set the URL prefix; maybe there's a way to do this in Flask as well?</div><div><br></div><div>—Badri/Hippo</div><div><br></div><div><br></div><br></div></div>______________________________<wbr>_________________<br>
Flask mailing list<br>
<a href="mailto:Flask@python.org" target="_blank">Flask@python.org</a><br>
<a href="https://mail.python.org/mailman/listinfo/flask" rel="noreferrer" target="_blank">https://mail.python.org/mailma<wbr>n/listinfo/flask</a><br>
<br></blockquote></div><br></div>
</blockquote></div><br></div>
</div></div></blockquote></div><br></div>