How to debug failed changes to posts?

I was finally able to get this to work by using php5-fpm instead of php5-cgi. First I removed the php5-cgi package via sudo apt-get autoremove –purge php5-cgi Then I installed php5-fpm via: sudo apt-get install php5-fpm After tweaking my server definition in Nginx a bit, the problem went away. Update I suspect this had more … Read more

Why do I need nginx when I have uWSGI

You don’t. That’s the simple answer, anyway — you don’t need it. uWSGI is itself a capable server. However, other servers like nginx have been around longer and are (probably, anyway) more secure, as well as having additional features not supported by uWSGI — for example, improved handling of static resources (via any combination of … Read more

Nginx – root versus alias, for serving single files?

Well, these two directives are slightly functional different because you do not use exact match in the latter case. So, /robots.txt1111 will match your second location too. location =/robots.txt { root /home/www/static/; } is an exact functional equivalent of your first directive.

Nginx Redirect via Proxy, Rewrite and Preserve URL

First, you shouldn’t use root directive inside the location block, it is a bad practice. In this case it doesn’t matter though. Try adding a second location block: location ~ /some/path/(?<section>.+)/index.html { proxy_pass http://192.168.1.24/$section/index.html; proxy_set_header Host $host; } This captures the part after /some/path/ and before index.html to a $section variable, which is then used … Read more

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