Vesta Control Panel - Forum

Community Forum

Skip to content

Advanced search
  • Quick links
    • Main site
    • Github repo
    • Google Search
  • FAQ
  • Login
  • Register
  • Board index Main Section Web Server
  • Search

SSL problem

Questions regarding the Web Server
Apache + Nginx, Nginx + PHP5-FPM
Post Reply
  • Print view
Advanced search
3 posts • Page 1 of 1
mat
Posts: 2
Joined: Fri Dec 27, 2013 3:15 pm

SSL problem
  • Quote

Post by mat » Fri Dec 27, 2013 3:25 pm

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
Last edited by mat on Fri Dec 27, 2013 6:52 pm, edited 1 time in total.
Top

KeiroD
Posts: 61
Joined: Fri Oct 11, 2013 8:35 pm

Re: SSL problem
  • Quote

Post by KeiroD » Fri Dec 27, 2013 5:11 pm

mat 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
Check your virtual hosts file in /etc/nginx and /etc/apache2 as well as /home/user/conf/web

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.
Top

mat
Posts: 2
Joined: Fri Dec 27, 2013 3:15 pm

Re: SSL problem
  • Quote

Post by mat » Fri Dec 27, 2013 7:02 pm

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
Top


Post Reply
  • Print view

3 posts • Page 1 of 1

Return to “Web Server”



  • Board index
  • All times are UTC
  • Delete all board cookies
  • The team
Powered by phpBB® Forum Software © phpBB Limited
*Original Author: Brad Veryard
*Updated to 3.2 by MannixMD
 

 

cron

Login  •  Register

I forgot my password