Setting up Redis on Webfaction

Introduction Because of the special environment restrictions of Webfaction servers the installation instructions are not as straightforward as they would be. Nevertheless at the end you will have a fully functioning Redis server that stays up even after a reboot. I personally installed Redis by the following procedure about a half a year ago and … Read more

Flask request.remote_addr is wrong on webfaction and not showing real user IP

If there is a proxy in front of Flask, then something like this will get the real IP in Flask: if request.headers.getlist(“X-Forwarded-For”): ip = request.headers.getlist(“X-Forwarded-For”)[0] else: ip = request.remote_addr Update: Very good point mentioned by Eli in his comment. There could be some security issues if you just simply use this. Read Eli’s post to … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)