Assuming you want to secure your website from the outside environment, I will show you how to properly do that using a reverse-proxy and a http to https redirector on a fresh Debian 8. Let’s start by downloading nginx apt-get install -y nginx After which, you should create a new configuration for your reverse-proxy.