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.
Wrong https redirect
Wrong https redirect
Hello,
At the moment i have on one of my domains an ssl cert installed.
Working quite well.. https with an green lock.
But when i'am going with a different domain, hosting on the same server, to https://
where is none ssl cert installed. It gives me a red warning. Logical.
But when i click accept it keeps the url in the bar but showing me the only domain with an ssl cert.
How can i fix this?
I not want this redirection or is this default behavior?
Thanks in advance.
At the moment i have on one of my domains an ssl cert installed.
Working quite well.. https with an green lock.
But when i'am going with a different domain, hosting on the same server, to https://
where is none ssl cert installed. It gives me a red warning. Logical.
But when i click accept it keeps the url in the bar but showing me the only domain with an ssl cert.
How can i fix this?
I not want this redirection or is this default behavior?
Thanks in advance.
Re: Wrong https redirect
You can limit connections to ssl/non-ssl sites like this:
/etc/nginx/conf.d/your-ip.conf
/etc/nginx/conf.d/your-ip.conf
Code: Select all
server {
listen ip:80 default;
server_name _;
location / {
access_log /dev/null;
error_log /dev/null;
return 444;
}
location /phpmyadmin/ {
proxy_pass http://ip:8080;
}
location /webmail/ {
proxy_pass http://ip:8080;
}
}
server {
listen ip:443;
server_name _;
ssl on;
ssl_certificate /home/admin/conf/web/ssl.domain.ru.pem; #your site with ssl
ssl_certificate_key /home/admin/conf/web/ssl.domain.ru.key; #your site with ssl
access_log /dev/null;
error_log /dev/null;
return 444;
}