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

Port 443 disabled and can't access HTTPS

Questions regarding the Web Server
Apache + Nginx, Nginx + PHP5-FPM
Post Reply
  • Print view
Advanced search
13 posts
  • 1
  • 2
  • Next
adzayko
Posts: 7
Joined: Sat Mar 28, 2015 4:27 am

Port 443 disabled and can't access HTTPS
  • Quote

Post by adzayko » Sat Mar 28, 2015 4:36 am

Hi! I've checked forums, tuts and asked for help from other developers to just make a simple https or ssl site work. I have a verified certificate but I couldn't access my site using https. I added the force-https template found here https://vestacp.com/docs/#how-to-force-https. I did the instructions and changed the necessary packages. Please help. I'm running ubuntu 14.04 on DO. I am a bit desprate now. Y_Y
Top

skurudo
VestaCP Team
Posts: 8099
Joined: Fri Dec 26, 2014 2:23 pm
Contact:
Contact skurudo
Website Facebook Google+ Skype
Twitter

Re: Port 443 disabled and can't access HTTPS
  • Quote

Post by skurudo » Sat Mar 28, 2015 7:58 am

Wait-wait-wait.

Port 443 disabled - How can this be? Do you disable this port?
Or you don't add your certificate in VestaCP?
What did you do to add certificate step be step?
Top

adzayko
Posts: 7
Joined: Sat Mar 28, 2015 4:27 am

Re: Port 443 disabled and can't access HTTPS
  • Quote

Post by adzayko » Sat Mar 28, 2015 10:21 am

Hi! I clicked Generate CSR, Pasted the CSR to my SSL provider. They approved it and provided me with the Cert and the Cert Authority. VestaCP accepted it and it was saved. public_html is the ssl home.

I tried accessing https but it does not work. The SSL cust service asked for my domain name and tested, they said that my port 443 is closed. I did not change any vestaCP default settings.

And no, I did not disable any ports.
Top

skurudo
VestaCP Team
Posts: 8099
Joined: Fri Dec 26, 2014 2:23 pm
Contact:
Contact skurudo
Website Facebook Google+ Skype
Twitter

Re: Port 443 disabled and can't access HTTPS
  • Quote

Post by skurudo » Sat Mar 28, 2015 10:43 am

Try to disable firewall service and check https
Top

adzayko
Posts: 7
Joined: Sat Mar 28, 2015 4:27 am

Re: Port 443 disabled and can't access HTTPS
  • Quote

Post by adzayko » Sat Mar 28, 2015 11:36 am

Now all my sites aren't running even in http. Vesta works fine though.
apache2 - running
nginx - not running
vesta-nginx running
vesta-php running

After enabling back firewall all my sites still aint working. hmmhm
Top

skurudo
VestaCP Team
Posts: 8099
Joined: Fri Dec 26, 2014 2:23 pm
Contact:
Contact skurudo
Website Facebook Google+ Skype
Twitter

Re: Port 443 disabled and can't access HTTPS
  • Quote

Post by skurudo » Sat Mar 28, 2015 11:46 am

Which template do you use for sites?
With enable nginx support?
Top

adzayko
Posts: 7
Joined: Sat Mar 28, 2015 4:27 am

Re: Port 443 disabled and can't access HTTPS
  • Quote

Post by adzayko » Sat Mar 28, 2015 11:50 am

One site is on Default and yes with enabled nginx support.
The other site which I needed the https thing is using force-http and still yes, checked nginx support.

And depressing to think that all my sites are now down. I just disabled firewall and re-enabled it and everything stopped working except vestacp. I can't even access phpmyadmin now.
Top

skurudo
VestaCP Team
Posts: 8099
Joined: Fri Dec 26, 2014 2:23 pm
Contact:
Contact skurudo
Website Facebook Google+ Skype
Twitter

Re: Port 443 disabled and can't access HTTPS
  • Quote

Post by skurudo » Sat Mar 28, 2015 12:00 pm

What's in nginx error log?
see in /var/log
Why your nginx not start?
Top

adzayko
Posts: 7
Joined: Sat Mar 28, 2015 4:27 am

Re: Port 443 disabled and can't access HTTPS
  • Quote

Post by adzayko » Sat Mar 28, 2015 12:06 pm

2015/03/28 08:03:41 [emerg] 8718#0: unknown directive "application/x-javascript" in /etc/nginx/nginx.conf:55
2015/03/28 08:03:55 [emerg] 9008#0: unknown directive "application/x-javascript" in /etc/nginx/nginx.conf:55
2015/03/28 08:04:21 [emerg] 9299#0: unknown directive "application/x-javascript" in /etc/nginx/nginx.conf:55

the time is correct for my timezone.

# Compression
gzip on;
gzip_comp_level 9;
gzip_min_length 512;
gzip_buffers 8 64k;
gzip_types text/plain text/css application/json application/javascript text/xml application/xml application/xml+rss text/javascript image/svg+xml application/x-font-ttf font/opentype;
application/x-javascript; <-- THIS IS LINE 55 AS MENTIONED ON THE ERROR
gzip_proxied any;
Top

skurudo
VestaCP Team
Posts: 8099
Joined: Fri Dec 26, 2014 2:23 pm
Contact:
Contact skurudo
Website Facebook Google+ Skype
Twitter

Re: Port 443 disabled and can't access HTTPS
  • Quote

Post by skurudo » Sat Mar 28, 2015 12:14 pm

Code: Select all

gzip_types          text/plain text/css text/xml text/javascript application/x-javascript application/xml application/xml+rss;
It's one string
Fix it and restart service
Top


Post Reply
  • Print view

13 posts
  • 1
  • 2
  • Next

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
 

 

Login  •  Register

I forgot my password