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

Can't get Nginx templates to work

Questions regarding the Web Server
Apache + Nginx, Nginx + PHP5-FPM
Post Reply
  • Print view
Advanced search
7 posts • Page 1 of 1
brianbws
Posts: 8
Joined: Mon Aug 21, 2017 6:56 am

Can't get Nginx templates to work
  • Quote

Post by brianbws » Mon Aug 21, 2017 7:19 am

I've tried following the documentation to add a template for force https, but there is no where under web or packages to select the force-https template. Yes, I restarted nginx and the server several times.

I don't see any drop down menu for any of these templates in Vesta CP anywhere. New install, nginx + php-fpm.
Image
Top

skurudo
VestaCP Team
Posts: 8099
Joined: Fri Dec 26, 2014 2:23 pm
Contact:
Contact skurudo
Website Facebook Google+ Skype
Twitter

Re: Can't get Nginx templates to work
  • Quote

Post by skurudo » Mon Aug 21, 2017 9:16 am

Code: Select all

service vesta restart
?
Top

brianbws
Posts: 8
Joined: Mon Aug 21, 2017 6:56 am

Re: Can't get Nginx templates to work
  • Quote

Post by brianbws » Tue Aug 22, 2017 9:41 am

Yes, restarted vesta several times.

It looks like it's showing templates form the nginx/php-fpm directory above and not the nginx/ directory now that I look at it.
Top

gecube_ru
Posts: 141
Joined: Thu Jun 22, 2017 1:21 pm

Re: Can't get Nginx templates to work
  • Quote

Post by gecube_ru » Tue Aug 22, 2017 2:56 pm

I can't advise anything.
But the template works on my server.
Look at the screenshot (Web -> editing domain)

Image
Top

brianbws
Posts: 8
Joined: Mon Aug 21, 2017 6:56 am

Re: Can't get Nginx templates to work
  • Quote

Post by brianbws » Thu Oct 26, 2017 6:30 pm

Hmm, interesting. I don't have a "Proxy Supprot NGINX" section. I have a "Web Template NGINX" and "Backend Template PHP-FPM" section. Using Vesta v0.9.8-17.

I have found though, I can modify templates in the /usr/local/vesta/data/templates/web/nginx/php-fpm/ directory and select them from the "Web Template NGINX" section.

The "Backend Template PHP-FPM" section remains a mystery of where that comes from or what its function is. I see default, no-php, and socket as dropdown options.
Top

amirb
Posts: 1
Joined: Mon Mar 05, 2018 2:21 pm

Os: Ubuntu 15x
Web: nginx + php-fpm
Re: Can't get Nginx templates to work
  • Quote

Post by amirb » Mon Mar 05, 2018 2:28 pm

Hi everyone
I have the same problem.
my server VestaCP version is 0.9.8-19 and I install it with Nginx + PHP-fpm.
i don't have the 'Proxy Support Nginx' section too and all the files in the /usr/local/vesta/data/templates/web/nginx/php-fpm/ are listed in the "Web Template NGINX" section.
Top

fngatia
Posts: 1
Joined: Wed Nov 13, 2019 12:47 am

Os: CentOS 6x
Web: nginx + php-fpm
Re: Can't get Nginx templates to work
  • Quote

Post by fngatia » Wed Nov 13, 2019 12:52 am

With PHP-FPM, the templates are sourced from this floder /usr/local/vesta/data/templates/web/nginx/php-fpm/ Am using CENTOS 7.x on Vesta Release 0.9.8-26. I found a working solution.

Please copy the files from:

Code: Select all

https://github.com/cybersholt/VestaCP-Nginx-Force-SSL
to:

Code: Select all

/usr/local/vesta/data/templates/web/nginx/php-fpm/
then restart vesta:

Code: Select all

service vesta restart
Top


Post Reply
  • Print view

7 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