[SOLVED] Can't get force ssl working Topic is solved
-
- Posts: 9
- Joined: Thu Jul 16, 2020 2:34 pm
- Os: Debian 8x
- Web: nginx + php-fpm
[SOLVED] Can't get force ssl working
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:
and here is list of templates:
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
and here is list of templates:
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
Last edited by videosambo on Thu Jul 16, 2020 6:45 pm, edited 1 time in total.
-
- Posts: 9
- Joined: Thu Jul 16, 2020 2:34 pm
- Os: Debian 8x
- Web: nginx + php-fpm
-
- Support team
- Posts: 1111
- Joined: Tue Jul 30, 2013 10:18 pm
- Contact:
- Os: CentOS 6x
- Web: nginx + php-fpm
Re: [HELP] Can't get force ssl working
Copy this templates to /usr/local/vesta/data/templates/web/nginx/php-fpm
-
- Posts: 9
- Joined: Thu Jul 16, 2020 2:34 pm
- Os: Debian 8x
- Web: nginx + php-fpm
Re: [HELP] Can't get force ssl working
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%;
Code: Select all
listen %ip%:%web_port%;
-
- Support team
- Posts: 1111
- Joined: Tue Jul 30, 2013 10:18 pm
- Contact:
- Os: CentOS 6x
- Web: nginx + php-fpm
Re: [HELP] Can't get force ssl working
Right. This is was templates for nginx+apache.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 hadfield in force-https.tpl but that does not work. I checked default.tpl and it should beCode: Select all
listen %ip%:%proxy_port%;
After edits and user recreations, my force https is now working fineCode: Select all
listen %ip%:%web_port%;