SSL Cert issue Ubuntu EC2 WordPress site

[ad_1]

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>

&#x200B;

<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

&#x200B;

Any help would be appreciated. Thanks in advance.

[ad_2]

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer