My issue is related to this:
Nginx as reversed proxy with apache and nodejs. How to install SSL certificates?
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. crt.sh | 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: player.ottawakaraoke.com
I ran this command:
certbot
It produced this output:
- The following errors were reported by the server:
Domain: player.ottawakaraoke.com
Type: unauthorized
Detail: Invalid response from
http://player.ottawakaraoke.com/.well-known/acme-challenge/1zmdcYJGngrsiZVIfhBUxXgS3NZYTjuYKDs6P0N6wU4
[216.127.169.108]: "<!DOCTYPE HTML PUBLIC \"-//IETF//DTD HTML
2.0//EN\">\n<html><head>\n<title>404 Not
Found</title>\n</head><body>\n<h1>Not Found</h1>\n<p"
To fix these errors, please make sure that your domain name was
entered correctly and the DNS A/AAAA record(s) for that domain
contain(s) the right IP address.
My web server is (include version):
apache
The operating system my web server runs on is (include version):
My hosting provider, if applicable, is:
secret cloud company
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):
putty.exe
The version of my client is (e.g. output of certbot --version
or certbot-auto --version
if you're using Certbot):
latest version
I'm thinking this is the best solution:
Alternatively, you can add an additional rule to your existing server block so that
/.well-known/acme-challenge
is served out of a directory on the filesystem, rather than beingproxy_pass
ed to a different server. In that casecertbot --webroot
would be able to work. Or you could add a rule that/.well-known/acme-challenge
requests areproxy_pass
ed to a different port and then usecertbot --standalone --http-01-port
followed by that port number.
Here is my virtual hosts file:
<VirtualHost *:*>
ProxyPreserveHost On
ProxyPass /api http://localhost:8003/
ProxyPassReverse /api http://localhost:8003/
ServerName player.ottawakaraoke.com
</VirtualHost>
<VirtualHost *:80>
ServerName playlist.ottawakaraoke.com
ServerAdmin webmaster@localhost
DocumentRoot /var/www/html
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
ProxyPass /api http://localhost:8003/api
ProxyPassReverse /api http://localhost:8003/api
</VirtualHost>
# vim: syntax=apache ts=4 sw=4 sts=4 sr noet
```````````````````