Page 1 of 1

[SOLVED] Can't get force ssl working

Posted: Thu Jul 16, 2020 2:53 pm
by videosambo
So I have problem when trying to setup force ssl, I have followed guides to enable force ssl but I cant get it work. I have tried to use vestas own guide to force ssl https://vestacp.com/docs/#how-to-force-https and this https://github.com/cybersholt/VestaCP-Nginx-Force-SSL. The problem here is that after installing template, when I try to make new package or edit older one, there is no force ssl kind option in web template section. Here is screenshots of list:
ImageImage
and here is list of templates:
Image

os: Debian 9 web-server: nginx + fpm vestacp version: 0.9.8

I have already tried to fix this with these:
viewtopic.php?t=8192
https://medium.com/thepolarlab/apply-ss ... e481f7a29d
https://stackoverflow.com/questions/618 ... trol-panel

I really need to get these fixed and I have no glue how because I have tried almost everything

Re: [HELP] Can't get force ssl working

Posted: Thu Jul 16, 2020 4:01 pm
by videosambo
anyone?

Re: [HELP] Can't get force ssl working

Posted: Thu Jul 16, 2020 4:18 pm
by grayfolk
videosambo wrote:
Thu Jul 16, 2020 4:01 pm
anyone?
Copy this templates to /usr/local/vesta/data/templates/web/nginx/php-fpm

Re: [HELP] Can't get force ssl working

Posted: Thu Jul 16, 2020 6:45 pm
by videosambo
grayfolk wrote:
Thu Jul 16, 2020 4:18 pm
videosambo wrote:
Thu Jul 16, 2020 4:01 pm
anyone?
Copy this templates to /usr/local/vesta/data/templates/web/nginx/php-fpm
Thanks for help, that pointed me to right direction. I dont know how I have missed that /php-fpm/ folder but that helped.

I noticed other problem also, for other users that have same problem, check your force-https.tpl and force-https.stpl files, I had

Code: Select all

listen %ip%:%proxy_port%;
field in force-https.tpl but that does not work. I checked default.tpl and it should be

Code: Select all

listen %ip%:%web_port%;
After edits and user recreations, my force https is now working fine

Re: [HELP] Can't get force ssl working

Posted: Thu Jul 16, 2020 7:41 pm
by grayfolk
videosambo wrote:
Thu Jul 16, 2020 6:45 pm

I noticed other problem also, for other users that have same problem, check your force-https.tpl and force-https.stpl files, I had

Code: Select all

listen %ip%:%proxy_port%;
field in force-https.tpl but that does not work. I checked default.tpl and it should be

Code: Select all

listen %ip%:%web_port%;
After edits and user recreations, my force https is now working fine
Right. This is was templates for nginx+apache.