Categories
Backend

How to install & secure WordPress on a small VPS with Debian, Nginx, MariaDB, 2FA and more

This blog is running on a tiny Linux VPS with 1GB RAM, 1 CPU Core and a 25GB SSD with Debian 10 installed. Thanks to a proper WordPress setup this VPS will handle itself just fine even with substantial traffic. This article describes my setup. Moreover, it costs me only $5 per month. That’s like […]

Categories
Backend

How to redirect POST requests in Apache & Nginx

When you move content, change domains or create aliases on the web, you often use a redirect, like a URL rewrite in your webserver config, to tell browsers that the link should point to something else — but what if you want to move an API that handles POST requests? URL rewrites are useful, because […]

Categories
Backend

How to use utf8 in Perl and don’t go crazy

UTF-8 is the best way to deal with text, and I hope everyone can agree with that. Anyway, while Perl handles any character beautifully within variables, things get messy when you want to save and load these characters into a file, for example. God forbid it’s JSON, then you’re in for a wild ride. But […]