ebusiness madtaxi fareebusiness mad
loader image

Link To Tutorial: https://www.youtube.com/watch?v=cJbGXWKI-AA&t=171s

Commands:

Install CertBot Client:
wget https://dl.eff.org/certbot-auto && chmod a+x certbot-auto

Generate Certificates:
./certbot-auto certonly –webroot -w /var/www/html/ -d crackerzin.com -d www.crackerzin.com

Certificate Configure:
sudo nano /etc/apache2/sites-available/default-ssl.conf


Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all

SSLCertificateFile “/etc/letsencrypt/live/crackerzin.com/cert.pem”
SSLCertificateKeyFile “/etc/letsencrypt/live/crackerzin.com/privkey.pem”
SSLCertificateChainFile “/etc/letsencrypt/live/crackerzin.com/chain.pem”

HTTPS Redirect:

sudo nano /etc/apache2/sites-available/wordpress.conf

<VirtualHost *:80>

ServerAdmin webmaster@localhost

DocumentRoot /var/www/html

ServerName www.crackerzin.com

ServerAlias  crackerzin.com

Redirect permanent / https://www.crackerzin.com/

<Directory />

Options FollowSymLinks

AllowOverride None

</Directory>

<Directory /var/www/html/>

Options Indexes FollowSymLinks MultiViews

AllowOverride All

Order allow,deny

allow from all

</Directory>

ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/

<Directory “/usr/lib/cgi-bin”>

AllowOverride None

Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch

Order allow,deny

Allow from all

</Directory>

ErrorLog ${APACHE_LOG_DIR}/error.log

# Possible values include: debug, info, notice, warn, error, crit,

# alert, emerg.

LogLevel warn

CustomLog ${APACHE_LOG_DIR}/access.log combined

</VirtualHost>

Restart Apache:

sudo a2ensite default-ssl
sudo a2enmod ssl
sudo service apache2 restart/p>