Apache setup for https
- # sudo apt-get install apache2 openssl
- # a2enmod ssl
- # a2enmod rewrite
- # mkdir /etc/apache2/certificate
- # cd /etc/apache2/certificate
- # openssl req -new -newkey rsa:4096 -x509 -sha256 -days 365 -nodes -out apache-certificate.crt -keyout apache.key
- /etc/apache2/sites-enabled/000-default.conf
- service apache2 restart
Optional: (and skipped)
- # vi /etc/apache2/apache2.conf
- add the followings at the end of the file:
<Directory /var/www/html>
AllowOverride All
</Directory>
Go back to Computer
20230924