[Flask] URL rewriting (url_for) issues with Flask 0.11.1 and fastcgi

Erik Lindqvist eriksmejl at gmail.com
Thu Oct 13 04:56:26 EDT 2016


Hi,

In my current setup I am using the following:
* Flask 0.11.1
* Werkzeug-0.9.6
* flup 1.0.2
* lighttpd 1.4.41
** mod_fastcgi

I have followed the fastcgi instructions here:
http://flask.pocoo.org/docs/0.11/deploying/fastcgi/#configuring-lighttpd

My issue is that "url_for" is returning URLs with the following prefix:
"/yourapplication.fcgi/actualpage"
instead of
"/actualpage"

When running Flask's internal development server I do not have these issues
at all.

Anyone familiar with this issue?

Regards,
Erik
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/flask/attachments/20161013/22f408eb/attachment.html>


More information about the Flask mailing list