Enable SSL in Apache

To enable SSL in Apache, we need to perform some steps. We start by generating a key for our server: openssl genrsa -out server.key 4096 Then we generate a Certificate Signing Request (CSR) based on this key: openssl req -new -key server.key -out server.csr Make sure that you enter a valid value for Common Name […]

Apache virtual hosts

Assume we want to serve webpages for two domains, example.com and example.org and these pages should be available with and without the ‘www’, so from www.example.com, example.com, www.example.org and example.org. In addition, clients connecting directly to our IP address, instead of using these domain names, should get an error message (404 Not Found) or short […]