Skip to content

This is a couple of template files for VestaCP Nginx Only installs that allows you to force SSL by default.

License

Notifications You must be signed in to change notification settings

cybersholt/VestaCP-Nginx-Force-SSL

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

VestaCP Nginx Force SSL

This is a couple of template files for VestaCP Nginx Only installs that allows you to force SSL by default. Simply download and extract the 4 files, then place them into /usr/local/vesta/data/templates/web/nginx.

If you are adding this to an existing domain you'll need to select the template and then run Rebuild Web for the user via the GUI or run v-rebuild-web-domains for each user, there is also a little bash script available here credit to plutocrat. Otherwise just apply the correct template when adding the domain.

enter image description here

I've included 2 versions to force ssl, the force-ssl-www enforces the www where the ssl-no-www omits it completely.

  • Tested on CentOS 7 VestaCP 0.9.8

About

This is a couple of template files for VestaCP Nginx Only installs that allows you to force SSL by default.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages