We are happy to announce that Vesta is back under active development as of 25 February 2024. We are working on v1 candidate and expect to engage more with the community over the coming months. We are committed to open source, and we encourage contributors to help us build the future of Vesta.
vestacp redirect to ssl
vestacp redirect to ssl
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.
I have tried adding rewrite rules to nginx.conf, adding htaccess files, but nothing seems to work.
Re: vestacp redirect to ssl
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
Re: vestacp redirect to ssl
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:
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
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;
Any idea what should I do in this case? I'm a little worried about this.
Thanks
Re: vestacp redirect to ssl
what do you want to do?
Re: vestacp redirect to ssl
He was very clear he wasn't his VestaCP control panel to be redirected from http:// to https://imperio wrote:what do you want to do?
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
Imperio did you even try that yourself before suggesting it to the community ?
Re: vestacp redirect to ssl
When imperio suggesting this? It was skid. Try read posts too ;-)guineapig wrote:Imperio did you even try that yourself before suggesting it to the community ?
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.guineapig wrote:He was very clear he wasn't his VestaCP control panel to be redirected from http:// to https://
Yeah, I don't find good solution yet, but there is no reason to be like a bad guy, guineapig.
Re: vestacp redirect to ssl
/usr/local/vesta/nginx/conf/nginx.confzanpo 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.
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;
It's work just fine without https.
Re: vestacp redirect to ssl
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.
Re: vestacp redirect to ssl
Ну так что, получилось перенаправить трафик с http на https?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.
Re: vestacp redirect to ssl
Yep, but only for domain name not for IP address.rednager wrote:Ну так что, получилось перенаправить трафик с http на https?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.
Конечно, как два пальца, но только для доменного имени, но не для IP-адреса.