Cannot find a VirtualHost matching domain shotzbot.com

Cannot find a VirtualHost matching domain shotzbot.com
Im running this setup

  1. Worldpress setup with njinx on centOS 6
  2. Domain provided by godaddy
  3. VPS on vultr.
    I get this error
    Cannot find a VirtualHost matching domain shotzbot.com.Help!!

Please fill out the fields below so we can help you better.

My domain is:

I ran this command:

It produced this output:

My web server is (include version):

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

My hosting provider, if applicable, is:

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

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

My domain is:www.shotzbot.com

I ran this command: wget https://dl.eff.org/certbot-auto
chmod a+x certbot-auto
sudo ./certbot-auto --nginx -d www.shotzbot.com
It produced this output:
[root@b0nes ~]# ./certbot-auto --nginx -d www.shotzbot.com
/root/.local/share/letsencrypt/lib/python2.6/site-packages/cryptography/init.py:26: DeprecationWarning: Python 2.6 is no longer supported by the Python core team, please upgrade your Python. A future version of cryptography will drop support for Python 2.6
DeprecationWarning
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Obtaining a new certificate
Performing the following challenges:
tls-sni-01 challenge for www.shotzbot.com
Cleaning up challenges
Cannot find a VirtualHost matching domain www.shotzbot.com.

My web server is (include version) :Wordpress 4,8

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

My hosting provider, if applicable, is: Vultr.com

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):Im using the stock that comes with wordpress,

Hi @Snackb0ne,

Could you post your nginx configuration for that server? I think it’s about 60% likely that you found a bug in how Certbot interacts with nginx.

This is the exact same issue as I have. Watching with interest. Have you solved @Snackb0ne ?

I have a nginx.conf but don’t wan’t to hijack thread. @schoen

I did this and it works:

log in as root
nano /etc/nginx/conf.d/wordpress_https.conf

Add your domain to line 8;

upstream php-handler-https {
        server 127.0.0.1:9000;
        #server unix:/var/run/php5-fpm.sock;
}

server {
        listen 443 ssl default_server;
        server_name add.domain.here;
        #server_name wordpress.example.com;

...etc....... 

Then run the following again.

$ ./path/to/certbot-auto --nginx

:grinning:

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