How can I update the virtualhost configuration?

I successfully install ssl certificate in my server and also in my domain name using certbot. When I go back to the domain name it still not connect to https. I also change the vhosts.
Here's my configuration

bitnami@ip-172-26-5-96:~/stack/apache2/conf/extra$ sudo nano httpd-vhosts.conf

<IfModule mod_ssl.c>
<VirtualHost *:443>
        ServerName clairr.com
        ProxyPreserveHost on
        ServerAlias www.clairr.com
        DocumentRoot "/var/www/html"
        SSLEngine on
        SSLCertificateFile "/etc/letsencrypt/live/clairr.com/fullchain.pem"
        SSLCertificateKeyFile "/etc/letsencrypt/live/clairr.com/privkey.pem"
</VirtualHost>
</IfModule>

<IfModule mid_gnutls.c>
        Listen 443
</IfModule>

After I ran the apachectl -S command. I realize that the port 443 and 80 has the wrong domain name. I don't know how to change the VirtualHost Configuration to change the name of it.
I would like some help please!!

My domain is: https://clairr.com

I ran this command:

sudo apachectl -S

It produced this output:
*:80                   www.example.com (/opt/bitnami/apache/conf/bitnami/bitnami.conf:6)
*:443                  www.example.com (/opt/bitnami/apache/conf/bitnami/bitnami-ssl.conf:15)

My web server is (include version):

The operating system my web server runs on is (include version):

My hosting provider, if applicable, is: LAMP PHP

I can login to a root shell on my machine (yes or no, or I don't know): Yes

I'm using a control panel to manage my site (no, or provide the name and version of the control panel): Bitnami Linux Debian


The version of my client is (e.g. output of certbot --version or certbot-auto --version if you're using Certbot): 0.31.0 Version

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.