SSL problem
SSL problem
I have a CentOS 6 x64 server with the latest vesta version but when I add a SSL certificate to a site, it applies to the default website.
For example, I install the ssl for domain.com, but when I open https://domain.com it doesn't load and the certificate get applied to https://<myserverip>
I already tried restarting nginx and httpd but nothing changed.
I don't know if I explained myself well, but I can provide data in private if needed.
thank you
For example, I install the ssl for domain.com, but when I open https://domain.com it doesn't load and the certificate get applied to https://<myserverip>
I already tried restarting nginx and httpd but nothing changed.
I don't know if I explained myself well, but I can provide data in private if needed.
thank you
Last edited by mat on Fri Dec 27, 2013 6:52 pm, edited 1 time in total.
Re: SSL problem
Check your virtual hosts file in /etc/nginx and /etc/apache2 as well as /home/user/conf/webmat wrote:I have a CentOS 6 x64 server with the latest vesta version but when I add a SSL certificate to a site, it applies to the defualt website.
For example, I install the ssl for domain.com, but when I open https://domain.com it doesn't load and the certificate get applied to https://<myserverip>
I already tried restarting nginx and httpd but nothing changed.
I don't know if I explained myself well, but I can provide data in private if needed.
thank you
Specifically, check the contents of /home/user/conf/web/sapache2.conf and /home/user/conf/web/snginx.conf as that is where the SSL configurations are made for a user's domain.
Re: SSL problem
Seems all good to me, but still doesn't work.
in the main /etc/nginx/nginx.conf there is wildcard include to /etc/nginx/conf.d/
/etc/nginx/conf.d/vesta.conf
include all user's nginx.conf and snginx.conf files
now under /home/user/conf/web/snginx.conf
it correctly listen to 443 with the correct server name and it proxy to 8443
in /home/user/conf/web/shttpd.conf
it correctly listen to ip:8443 with correct server name and www path
in /home/user/conf/web/ there are the .key , .crt , .pem files
I tried with more domains and with different httpd/nginx profiles but never works and the ssl certificate get applied to the main "vhost" https://ip
EDIT:
I've also tried to access the https site directly: https://domain.com:8443 and http://domain.com:8443 but it doesn't work.
I also checked iptables but they are empty
EDIT 2:
I've added SSL to "default.domain" and it's working fine, but when I try to add it to any other domain it won't work
in the main /etc/nginx/nginx.conf there is wildcard include to /etc/nginx/conf.d/
/etc/nginx/conf.d/vesta.conf
include all user's nginx.conf and snginx.conf files
now under /home/user/conf/web/snginx.conf
it correctly listen to 443 with the correct server name and it proxy to 8443
in /home/user/conf/web/shttpd.conf
it correctly listen to ip:8443 with correct server name and www path
in /home/user/conf/web/ there are the .key , .crt , .pem files
I tried with more domains and with different httpd/nginx profiles but never works and the ssl certificate get applied to the main "vhost" https://ip
EDIT:
I've also tried to access the https site directly: https://domain.com:8443 and http://domain.com:8443 but it doesn't work.
I also checked iptables but they are empty
EDIT 2:
I've added SSL to "default.domain" and it's working fine, but when I try to add it to any other domain it won't work