Answer the question
In order to leave comments, you need to log in
How to renew the SSL(letsencrypt, certbot) certificate in this case?
There are two sites on one IP.
Only one site (site 1) lies on the host itself (which owns the IP), and another site (site 2) is being proxyed.
For those not in the know, certbot works like this:
<VirtualHost *:80>
ServerName <sitename>
Redirect permanent / https://<sitename>.net/
</VirtualHost>
<VirtualHost *:443>
ServerAdmin *********@**.ru
ServerName <sitename>
SSLEngine On
ErrorLog /var/log/httpd/<sitename>.log
CustomLog /var/log/httpd/<sitename>.net_access.log common
ProxyRequests Off
ProxyPreserveHost On
ProxyVia Block
<proxy *>
Order deny,allow
Allow from all
</proxy>
ProxyPass / http://17<ip_скрыт>2/
ProxyPassReverse / http://17<ip_скрыт>2/
</VirtualHost>
Answer the question
In order to leave comments, you need to log in
Can you try to forward all this stuff through nginx ? We close both sites via nginx, in each we enter that for location /.well-known/acme-challenge we take files from one place (the one that we specify as docroot for certbot), and we proxy everything else to Apache (1 site) and to a third-party host (2 site)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question