chirale

IT and beyond

After a failed restart of the nginx server, you can get this error typing journalctl -xe: nginx: [emerg] open() “/usr/share/nginx/off” failed (13: Permission denied) [SOLVED] This is caused by a misconfiguration of nginx.conf or a conf inside the /etc/nginx/conf.d/ directory where there’s something like: This is the wrong way to disable logs. Nginx is actually …

Continue reading

HTTPS, encrypt via SSL / TLS

Here how you can get free SSL cerificates using Let’s Encrypt. Forget about the expire of certificates using the auto-renewal script. A complete reference to install a Let’s Encrypt certificate is this Digital Ocean’s howto. Here there’s a quick guide based on it, plus some additional suggestions. Here we go! The following code download the …

Continue reading

I use often Gunicorn as web server for django applications. Usually I use Apache but I’m starting to use nginx as webserver to serve both the static files and the proxied gunicorn response. I need to do something like what I’ve done with Apache to compress the response after I received from django since I’ve …

Continue reading