Protect your Server with Fail2Ban

Even if it's just a tiny computer - as soon as he hangs on the Internet, it is at risk and may be subject to attacks.

To avoid that you would have look through every log file, out from which IP the attack ran out and then lock this IP by hand using iptables as beschriben in this post Reduce Spam in Wordpress by blocking IP-Addresses with iptables


Banana Pi - Seafile with Https, NginX and MySQL

Again, the precondition is a LEMP installation as described in this article: Installation of Nginx, MySQL and PHP
Seafile has a its own little web server, but it can not handle the HTTPS protocol. So, to get an encrypted transmission to the cloud, you have to run Seafile behind a "real" web server - in this case, nginx.

The installation is done in 4 steps:

Banana Pi - Setup OwnCloud with Nginx and SSL

This requires a LEMP installation, as described here: Nginx, MySQL and PHP

This manual is written for an banana Pi, but it should also work for a Raspberry Pi or Beaglebone Black.
Step 1: Set up Nginx with SSL

These create the directory /etc/ssl/nginx, change to the directory and create a self-signed certificate.

Banana Pi - install Nginx, MySQL and PHP5

Whether you want to run OwnCloud, Baikal or WordPress on the Banana Pi - you will need a web server, MySQL and PHP. I have decided to use Nginx as web server, since it is very resource-friendly compared to Apache. And it is also known for its performance and stability.

This combination is known as LEMP: L inux + nginx(pronounced "engine x") + MySQL + PHP.

1. install Nginx

 apt-get install nginx 

Now start the server with

NGinx - URL-Forwarding from a Subfolder to a new Domain

How a url forwarding works with the Apache server, I have described in this article .
However, I have now switched to Nginx, a small, sleek, and very high-performance alternative to the flagship Apache - so it better suited for a Raspberry, a Beaglebone or a Cubieboard. But NGinX has no .htaccess-files. Forwardings are there - like everything else - set in the server configuration.


Baikal with Nginx and https

If you want to have your calendar- and contact-data synchronized and don't want to give it away to third parties, it is possible with very simple means to synchronize it at home on your own server. The flagship in this direction is OwnCloud, which also provides CalDAV and CardDAV for synchronization. However, I had always had problems with the synchronization, and so I wanted to give Baikal a try.
Baikal is a PHP written, small and robust server to synchronize calendar and contact data using CalDAV and CardDAV.