Hi all
Im having some issues installing an ssl cert on my wordpress site hosted on a ubuntu ec2 instance
the site works but is not secure until i add the following to my /etc/apache2/sites-enabled/wordpress.conf file
<VirtualHost \*:**443**\>
**SSLEngine on**
**SSLCertificateFile /etc/apache2/certificate/apache-certificate.crt**
**SSLCertificateKeyFile /etc/apache2/certificate/apache.key**
<Directory /srv/www/wordpress>
​
<VirtualHost *:443>
SSLEngine on
SSLCertificateFile /etc/apache2/certificate/apache-certificate.crt
SSLCertificateKeyFile /etc/apache2/certificate/apache.key
<Directory /srv/www/wordpress>
Options FollowSymLinks
AllowOverride Limit Options FileInfo
DirectoryIndex index.php
Require all granted
</Directory>
<Directory /srv/www/wordpress/wp-content>
Options FollowSymLinks
Require all granted
</Directory>
</VirtualHost>
once those changes are made and apache is restarted my ip no longer shows my wordpress site but instead just shows the default apache page.
root@ip-172-31-2-98:/etc/apache2/sites-enabled# sudo a2enmod ssl
Considering dependency setenvif for ssl:
Module setenvif already enabled
Considering dependency mime for ssl:
Module mime already enabled
Considering dependency socache_shmcb for ssl:
Module socache_shmcb already enabled
Module ssl already enabled
​
Any help would be appreciated. Thanks in advance.
[ad_2]