Page 1 of 1

SSL update problem

Posted: Sun Nov 25, 2018 10:06 am
by apacska
Hello!

This is my very first topic! :)
I have a problem with SSL update (v-update-letsencrypt-ssl).

When cron job runs v-update-letsencrypt-ssl command, for all https domain redirect to domain.tld/login (VestCP login) page, but http works fine.

Vesta CP: v0.9.8-23
Ubuntu 18.04
nginx+apache

Re: SSL update problem

Posted: Mon Nov 26, 2018 8:37 am
by Aporie
Can you check your apache config files in ~/conf/web/domain.tlf.apache.ssl.conf ?

If you don't know what to do please paste it here.

Re: SSL update problem

Posted: Mon Nov 26, 2018 9:39 am
by apacska
Aporie wrote:
Mon Nov 26, 2018 8:37 am
Can you check your apache config files in ~/conf/web/domain.tlf.apache.ssl.conf ?

If you don't know what to do please paste it here.
Thank you!

In ~/conf/web/domain.tlf.apache.ssl.conf:

<VirtualHost IP:PORT>
Port was wrong, it was my custom Vesta CP login port and not 8443.

In domain.tld.nginx.ssl.conf:
location / {
proxy_pass https://IP:PORT ----- Wrong Port, it was my custom Vesta CP login port...
}

location @fallback {
proxy_pass https://IP:PORT ----- Wrong Port, it was my custom Vesta CP login port...
}

I corrected it to port 8443, now all working fine, but when I add a new domain or make an ssl update, it will be added with the wrong port.

Why use it my custom Vesta CP login port insted of 8443?

I checked nginx template file (/usr/local/vesta/data/templates/web/nginx/default.stpl) there is a variable "web_ssl_port". Where can I set this variable, because it is wrong, it is my custom Vesta CP port instead of 8443.