Vesta Control Panel - Forum

Community Forum

Skip to content

Advanced search
  • Quick links
    • Main site
    • Github repo
    • Google Search
  • FAQ
  • Login
  • Register
  • Board index Main Section Web Server
  • Search

[SOLVED] Can't get force ssl working Topic is solved

Questions regarding the Web Server
Apache + Nginx, Nginx + PHP5-FPM
Post Reply
  • Print view
Advanced search
5 posts • Page 1 of 1
videosambo
Posts: 9
Joined: Thu Jul 16, 2020 2:34 pm

Os: Debian 8x
Web: nginx + php-fpm
[SOLVED] Can't get force ssl working
  • Quote

Post by videosambo » Thu Jul 16, 2020 2:53 pm

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
Last edited by videosambo on Thu Jul 16, 2020 6:45 pm, edited 1 time in total.
Top

videosambo
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
  • Quote

Post by videosambo » Thu Jul 16, 2020 4:01 pm

anyone?
Top

grayfolk
Support team
Posts: 1111
Joined: Tue Jul 30, 2013 10:18 pm
Contact:
Contact grayfolk
Website Facebook Skype Twitter

Os: CentOS 6x
Web: nginx + php-fpm
Re: [HELP] Can't get force ssl working
  • Quote

Post by grayfolk » 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
Top

videosambo
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
  • Quote

Post by videosambo » Thu Jul 16, 2020 6:45 pm

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
Top

grayfolk
Support team
Posts: 1111
Joined: Tue Jul 30, 2013 10:18 pm
Contact:
Contact grayfolk
Website Facebook Skype Twitter

Os: CentOS 6x
Web: nginx + php-fpm
Re: [HELP] Can't get force ssl working
  • Quote

Post by grayfolk » Thu Jul 16, 2020 7:41 pm

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.
Top


Post Reply
  • Print view

5 posts • Page 1 of 1

Return to “Web Server”



  • Board index
  • All times are UTC
  • Delete all board cookies
  • The team
Powered by phpBB® Forum Software © phpBB Limited
*Original Author: Brad Veryard
*Updated to 3.2 by MannixMD
 

 

Login  •  Register

I forgot my password