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 General Discussion
  • Search

vestacp redirect to ssl

General questions about VestaCP
Locked
  • Print view
Advanced search
12 posts
  • 1
  • 2
  • Next
puddled
Posts: 3
Joined: Tue Aug 13, 2013 2:15 pm

vestacp redirect to ssl

Post by puddled » Tue Aug 13, 2013 2:33 pm

Sorry if this has been covered before, but is there a way to automatically redirect request to the control panel from http to https so I dont see the nginx https error page if I forget.

I have tried adding rewrite rules to nginx.conf, adding htaccess files, but nothing seems to work.
Top

skid
VestaCP Team
Posts: 1476
Joined: Wed Apr 06, 2011 11:12 pm

Re: vestacp redirect to ssl

Post by skid » Fri Aug 16, 2013 9:15 am

Try this

Code: Select all

wget http://c.vestacp.com/0.9.8/rhel/vesta/nginx.conf -O /usr/local/vesta/nginx/conf/nginx.conf
service vesta restart
Top

zanpo
Posts: 3
Joined: Fri Sep 19, 2014 3:37 pm

Re: vestacp redirect to ssl

Post by zanpo » Sat Sep 20, 2014 12:38 pm

I just tried this and now I can't access Vestacp at all, in Chrome I get this error: 'SSL connection error'

In nginx.conf I commented out the ssl lines, and still no changes:

Code: Select all

      #  ssl                  on;
      #  ssl_certificate      /usr/local/vesta/ssl/certificate.crt;
      #  ssl_certificate_key  /usr/local/vesta/ssl/certificate.key;
      #  ssl_session_cache    shared:SSL:10m;
      #  ssl_session_timeout  10m;
I tried accesing Vesta by http://myip:8083, it redirects me to https://myip:8083, and then the SSL error.

Any idea what should I do in this case? I'm a little worried about this.

Thanks
Top

imperio
VestaCP Team
Posts: 7000
Joined: Sat Dec 01, 2012 12:37 pm
Contact:
Contact imperio
Website

Re: vestacp redirect to ssl

Post by imperio » Sun Sep 21, 2014 2:54 pm

what do you want to do?
Top

guineapig
Posts: 23
Joined: Sat Aug 09, 2014 3:15 am
Contact:
Contact guineapig
Website

Re: vestacp redirect to ssl

Post by guineapig » Fri Mar 20, 2015 1:57 am

imperio wrote:what do you want to do?
He was very clear he wasn't his VestaCP control panel to be redirected from http:// to https://

Code: Select all

wget http://c.vestacp.com/0.9.8/rhel/vesta/nginx.conf -O /usr/local/vesta/nginx/conf/nginx.conf
service vesta restart
This gives me the same result as his..

Imperio did you even try that yourself before suggesting it to the community ?
Top

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

Re: vestacp redirect to ssl

Post by skurudo » Fri Mar 20, 2015 8:02 am

guineapig wrote:Imperio did you even try that yourself before suggesting it to the community ?
When imperio suggesting this? It was skid. Try read posts too ;-)
guineapig wrote:He was very clear he wasn't his VestaCP control panel to be redirected from http:// to https://
Miss again - a way to automatically redirect request to the control panel from http to https , topic starter want perfect different, but after zanpo made his request.

Yeah, I don't find good solution yet, but there is no reason to be like a bad guy, guineapig.
Top

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

Re: vestacp redirect to ssl

Post by skurudo » Fri Mar 20, 2015 8:14 am

zanpo wrote:I just tried this and now I can't access Vestacp at all, in Chrome I get this error: 'SSL connection error'
I tried accesing Vesta by http://myip:8083, it redirects me to https://myip:8083, and then the SSL error.
Any idea what should I do in this case? I'm a little worried about this.
/usr/local/vesta/nginx/conf/nginx.conf

Code: Select all

    server {
        listen          8083;
        server_name     _;
        root            /usr/local/vesta/web;
        charset         utf-8;
#        ssl                  on;
#        ssl_certificate      /usr/local/vesta/ssl/certificate.crt;
#        ssl_certificate_key  /usr/local/vesta/ssl/certificate.key;
#        ssl_session_cache    shared:SSL:10m;
#        ssl_session_timeout  10m;
and then - service vesta restart

It's work just fine without https.
Top

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

Re: vestacp redirect to ssl

Post by skurudo » Fri Mar 20, 2015 8:19 am

For domain (cp.domain.com) user can make rewrite, but for IP only, I don't see a way to redirect from http to https.. I'm blind or something may be.
Top

rednager
Posts: 2
Joined: Mon Apr 13, 2015 3:56 pm

Re: vestacp redirect to ssl

Post by rednager » Mon Apr 13, 2015 5:57 pm

skurudo wrote:For domain (cp.domain.com) user can make rewrite, but for IP only, I don't see a way to redirect from http to https.. I'm blind or something may be.
Ну так что, получилось перенаправить трафик с http на https?
Top

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

Re: vestacp redirect to ssl

Post by skurudo » Mon Apr 13, 2015 6:03 pm

rednager wrote:
skurudo wrote:For domain (cp.domain.com) user can make rewrite, but for IP only, I don't see a way to redirect from http to https.. I'm blind or something may be.
Ну так что, получилось перенаправить трафик с http на https?
Yep, but only for domain name not for IP address.

Конечно, как два пальца, но только для доменного имени, но не для IP-адреса.
Top


Locked
  • Print view

12 posts
  • 1
  • 2
  • Next

Return to “General Discussion”



  • 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