#1 My own Web Server

Today I desided to take my Raspberry Pi 4 and build a web server. This wasn't totally new for me. At my school project a couple weeks ago, I've learned about servers in a Linux environment. This was a very educational week for me and my projectmates, and now I thought it would be great to use that knowledge for my own blog project.

I started of by installing the Raspbian operating system on my Pi and enabled SSH, so I could remotely access the shell to execute commands. After that, I installed some additional software to set up my web server. First of all I installed the UFW firewall to secure my server. Next I installed Apache2 to let my Pi function as a web server. This is a very simple way to let the Pi host the webpages I created. There was only one problem, how would I get my webpages to my web server without having to use an external device like a USB stick? This isn't a big problem for a website which doesn't change very often, but I plan to regularly upload blogposts and updates. So I thought it would be useful to integrate an FTP server. In class I made use of VSFTPD, a very handy FTP server, so I had a bit of experience with setting up this kind of server. After setting this up, I made it possible to access the directory of webpages remotely. I started uploading my webpages to my Pi via an FTP connection, so the web server could host those. Now my website was set up, but only in the local network. This is already a great step forward, but my goal was to make this blog accessible for everyone. The last step now was to make use of port forwarding, so I made my Pi accessible for computer located behind the router of my local network. This way I made my own web server with just the use of a Raspberry Pi 4 model B (4GB RAM version) and the Raspbian operating system.
We're online!

Posted on 8th February 2020

Raspberry Pi Web Server