Install support

Please fill out the fields below so we can help you better. Note: you must provide your domain name to get help. Domain names for issued certificates are all made public in Certificate Transparency logs (e.g. https://crt.sh/?q=example.com), so withholding your domain name here does not increase secrecy, but only makes it harder for us to provide help.

My domain is: www.ragnarok-rp.com

I ran this command: sudo certbot --apache

It produced this output:

My web server is (include version):

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

My hosting provider, if applicable, is: OVH

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):No

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

When I attempt to run the above command I get the attached error. I have no issues on the debug.

You can see I confirmed the port is listening.

Hi @Minuvas

please read your output, there is your complete answer.

Please add a virtual host for port 80

The documentation of your system has samples.

Thank you - this resolved one issue, but I now have another.

View of the Error log attached.

Hello @Minuvas,

You should install mod_ssl. I don't use CentOS but:

yum install mod_ssl

or

dnf install mod_ssl

should solve the "problem".

Edit and off-topic: Seems you are configuring now your server so I don't know whether it's a good idea to use Centos 8 since at the end of the year it will become a rolling release and maybe is not the best approach for a production server.

Cheers,
sahsanu

This worked! It helped with the installation, however my https still does not appear. I now get this error when I go to debug.

Thanks in advance for help and apologies that it doesn't openly make sense to me at first glance.

You have configured the virtual host to redirect requests from http://ragnarok-rp.com to https://ragnarok-rp.com but you have another redirect in that virtual host redirecting again to https://ragnarok-rp.com so you have a funny loop. You should fix the conf in your Virtual Hosts.

I have two redirects under etc/httpd/conf.d/

ragnarok-rp.conf:

<VirtualHost *:80>
	ServerName ragnarok-rp.com
	Redirect / https://ragnarok-rp.com
RewriteEngine on
RewriteCond %{SERVER_NAME} =ragnarok-rp.com
RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]
</VirtualHost>

and ragnarokrp-le-ssl.conf

<IfModule mod_ssl.c>
<VirtualHost *:443>
	ServerName ragnarok-rp.com
	Redirect / https://ragnarok-rp.com
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>

Are either of these wrong, or is there likely another re-direct floating out there somewhere?

There is an IfModule modssl in the second conf that doesn't appear , and a /virtual host in the first conf that also doesn't appear on this post, but is in the file itself.

Modify your conf files like this:

ragnarok-rp.conf:

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

ragnarokrp-le-ssl.conf (you have not defined a DocumentRoot in this block and you should do that):

<IfModule mod_ssl.c>
<VirtualHost *:443>
	ServerName ragnarok-rp.com
    DocumentRoot /path/to/your/doc/root/
    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>

Document Root?

I believe that is referencing /var/www/html/?

Made the above edits (with Document root as /var/www/html)

And unfortunately still getting the same Debug error.

I don't know, that is something you should know but that is the directory where Apache will pick the files to serve your site :wink: /var/www/html usually is the default document root but... who knows :stuck_out_tongue:

Yes that is where my website files are located for apache. No luck with the edits.

A slightly different error.

You must reload or restart Apache.

1 Like

Worked liked a charm. Thank you.

2 Likes

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