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.
Configure SSL to public_shtml or public_html
Re: Configure SSL to public_shtml or public_html
Seems like bug to me...
Yes, you can use separetely public_shtml and public_html. I don't know, when this thing broken - we try to check this, but you can make a little changes in /home/user/conf/web/sapache2.conf
DocumentRoot
Directory
public_html -> public_shtml
Yes, you can use separetely public_shtml and public_html. I don't know, when this thing broken - we try to check this, but you can make a little changes in /home/user/conf/web/sapache2.conf
DocumentRoot
Directory
public_html -> public_shtml
Re: Configure SSL to public_shtml or public_html
Strange, was public_html. All fixed. Sorry.
Taking advantage, I can do so:
To go straight to the snginx.conf
/home/user/conf/web/nginx.conf:
server {
listen 000.000.000.000:80;
server_name mydomain.com www.mydomain.com;
#force https and www
return 301 https://www.mydomain.com$request_uri;
...
Taking advantage, I can do so:
To go straight to the snginx.conf
/home/user/conf/web/nginx.conf:
server {
listen 000.000.000.000:80;
server_name mydomain.com www.mydomain.com;
#force https and www
return 301 https://www.mydomain.com$request_uri;
...
Re: Configure SSL to public_shtml or public_html
https://vestacp.com/docs/#how-to-force-https
Use this template to redirect, it's simple and no manually jobs with template.
Better use templates, if sometime somebody make rebuild no config changes will lost.
Use this template to redirect, it's simple and no manually jobs with template.
Better use templates, if sometime somebody make rebuild no config changes will lost.
Re: Configure SSL to public_shtml or public_html
Beautiful very good.
To force www can put in nginx.conf?
rewrite ^(.*) https://www.mydomain.com.br$1 permanent;
Thank you so much.
To force www can put in nginx.conf?
rewrite ^(.*) https://www.mydomain.com.br$1 permanent;
Thank you so much.
Re: Configure SSL to public_shtml or public_html
Yeah, but a much better place - template.edica wrote: To force www can put in nginx.conf?
rewrite ^(.*) https://www.mydomain.com.br$1 permanent;
If you'll make Rebuild Web in future, you don't lose this addition.
Re: Configure SSL to public_shtml or public_html
Yes I installed template for nginx force-https. Very good.
But in force-https.tpl:
server {
listen %ip%:%proxy_port%;
server_name %domain_idn% %alias_idn%;
location / {
rewrite ^(.*) https://www.%domain_idn%$1 permanent;
}
}
And if I put “www.”. The problem?
Thanks.
But in force-https.tpl:
server {
listen %ip%:%proxy_port%;
server_name %domain_idn% %alias_idn%;
location / {
rewrite ^(.*) https://www.%domain_idn%$1 permanent;
}
}
And if I put “www.”. The problem?
Thanks.