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.
http2.tpl file to force https
http2.tpl file to force https
Hi,
I changed the http2.tpl file to force https. But it does not go to https. what's wrong?
server {
listen %ip%:%proxy_ssl_port% http2;
server_name %domain_idn% %alias_idn%;
location / {
return 301 https://%domain%$request_uri;
}
include %home%/%user%/conf/web/snginx.%domain%.conf*;
}
I changed the http2.tpl file to force https. But it does not go to https. what's wrong?
server {
listen %ip%:%proxy_ssl_port% http2;
server_name %domain_idn% %alias_idn%;
location / {
return 301 https://%domain%$request_uri;
}
include %home%/%user%/conf/web/snginx.%domain%.conf*;
}
Re: http2.tpl file to force https
I don't works for existing domains or for new one?
Mhmm maybe try change like this:
location / {
return 301 https://%domain_idn%$request_uri;
}
PS. After template change, you need to rebuild vhosts:
Mhmm maybe try change like this:
location / {
return 301 https://%domain_idn%$request_uri;
}
PS. After template change, you need to rebuild vhosts:
Code: Select all
for user in $(v-list-sys-users plain); do v-rebuild-web-domains $user; done
-
- Support team
- Posts: 1111
- Joined: Tue Jul 30, 2013 10:18 pm
- Contact:
- Os: CentOS 6x
- Web: nginx + php-fpm
Re: http2.tpl file to force https
edica wrote: ↑Fri Apr 12, 2019 1:29 pmHi,
I changed the http2.tpl file to force https. But it does not go to https. what's wrong?
server {
listen %ip%:%proxy_ssl_port% http2;
server_name %domain_idn% %alias_idn%;
location / {
return 301 https://%domain%$request_uri;
}
include %home%/%user%/conf/web/snginx.%domain%.conf*;
}
Code: Select all
server {
listen %ip%:%proxy_port%;
server_name %domain_idn% %alias_idn%;
location / {
return 301 https://%domain_idn%$request_uri;
}
include %home%/%user%/conf/web/snginx.%domain%.conf*;
}