<div dir="ltr">Thanks for the suggestions Pete!<div><br><div>However, just wanted to clarify that with "environment" I meant the WSGI environment. SeeĀ <a href="https://github.com/pallets/flask/blob/master/flask/app.py#L1963">https://github.com/pallets/flask/blob/master/flask/app.py#L1963</a></div><div>I am not sure how it is passed to Flask but my guess is that mod_fastcgi is passing it to Flask via Flup. Hence, the issue with SCRIPT_NAME being != "" might be due to mod_fastcgi (lighttpd).</div><div>Anyone with lighttpd/fastcgi knowledge who can chime in?</div></div><div><br></div><div>//Erik</div></div><br><div class="gmail_quote"><div dir="ltr">On Tue, Oct 18, 2016 at 7:47 PM Pete Forman <<a href="mailto:petef4%2Busenet@gmail.com">petef4+usenet@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Pete Forman <<a href="mailto:petef4%2Busenet@gmail.com" class="gmail_msg" target="_blank">petef4+usenet@gmail.com</a>><br class="gmail_msg">
writes:<br class="gmail_msg">
> This Python code may help your diagnosis. I have used it to print<br class="gmail_msg">
> command lines and environment up the calling tree on Linux.<br class="gmail_msg">
<br class="gmail_msg">
I dusted that code down a bit too quickly. Line 14 should have been<br class="gmail_msg">
print() rather than a bare print statement for Python 3 compatibility.<br class="gmail_msg">
<br class="gmail_msg">
--<br class="gmail_msg">
Pete Forman<br class="gmail_msg">
<a href="https://payg-petef.rhcloud.com" rel="noreferrer" class="gmail_msg" target="_blank">https://payg-petef.rhcloud.com</a><br class="gmail_msg">
<br class="gmail_msg">
_______________________________________________<br class="gmail_msg">
Flask mailing list<br class="gmail_msg">
<a href="mailto:Flask@python.org" class="gmail_msg" target="_blank">Flask@python.org</a><br class="gmail_msg">
<a href="https://mail.python.org/mailman/listinfo/flask" rel="noreferrer" class="gmail_msg" target="_blank">https://mail.python.org/mailman/listinfo/flask</a><br class="gmail_msg">
</blockquote></div>