Forum SSL Issue

Hello @Minuvas,

Here we go again :wink:

@Osiris, this came from this post Install support

@Minuvas, so your current conf should be this:

ragnarok-rp.conf:

<VirtualHost *:80>
	ServerName ragnarok-rp.com
	Redirect / https://ragnarok-rp.com/
</VirtualHost>

ragnarokrp-le-ssl.conf :

<IfModule mod_ssl.c>
<VirtualHost *:443>
	ServerName ragnarok-rp.com
    DocumentRoot /var/www/html
    SSLCertificateFile /etc/letsencrypt/live/ragnarok-rp.com/fullchain.pem
    SSLCertificateKeyFile /etc/letsencrypt/live/ragnarok-rp.com/privkey.pem
    Include /etc/letsencrypt/options-ssl-apache.conf
</VirtualHost>
</IfModule>

Modify them to this:

ragnarok-rp.conf:

<VirtualHost *:80>
	ServerName ragnarok-rp.com
	ServerAlias www.ragnarok-rp.com
    RewriteEngine On
    RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
</VirtualHost>

ragnarokrp-le-ssl.conf:

<IfModule mod_ssl.c>
<VirtualHost *:443>
	ServerName ragnarok-rp.com
    ServerAlias www.ragnarok-rp.com
    DocumentRoot /var/www/html
    SSLCertificateFile /etc/letsencrypt/live/ragnarok-rp.com/fullchain.pem
    SSLCertificateKeyFile /etc/letsencrypt/live/ragnarok-rp.com/privkey.pem
    Include /etc/letsencrypt/options-ssl-apache.conf
</VirtualHost>
</IfModule>

Now reload or restart Apache and use certbot to expand your current certificate (if certbot asks, say it to not redirect http to https because you are already doing it).

1 Like