We are happy to announce that Vesta is back under active development as of 25 February 2024. We are working on Vesta 2.0 and expect to release it by the end of 2024. Read more about it: https://vestacp.com/docs/vesta-2-development
Edit template for file snginx.conf
-
- Posts: 25
- Joined: Mon Sep 30, 2013 8:42 am
Edit template for file snginx.conf
Hello,
Hope I got the right forum.
Is there a possibility that I can edit the way vestacp write the conf file of snginx.conf in the path:
/home/website/conf/web/snginx.conf
Hope I got the right forum.
Is there a possibility that I can edit the way vestacp write the conf file of snginx.conf in the path:
/home/website/conf/web/snginx.conf
-
- Posts: 25
- Joined: Mon Sep 30, 2013 8:42 am
Re: Edit template for file snginx.conf
Found it:
/usr/local/vesta/data/templates/web/nginx
/usr/local/vesta/data/templates/web/nginx
Re: Edit template for file snginx.conf
nginx.conf and snginx.conf auto-create from template
edit/copy template which you choose and modify him
NOTE: name_template.tpl and name_template.stpl is one template need modify/copy both file if you add some general directive
edit/copy template which you choose and modify him
NOTE: name_template.tpl and name_template.stpl is one template need modify/copy both file if you add some general directive
-
- Posts: 25
- Joined: Mon Sep 30, 2013 8:42 am
Re: Edit template for file snginx.conf
Thank you for your reply, but what do you mean with:
NOTE: name_template.tpl and name_template.stpl is one template need modify/copy both file if you add some general directive
Re: Edit template for file snginx.conf
template consists of two files with extensions tpl(for normal config) and stpl(for security config)
to work correctly you must edit both files
to work correctly you must edit both files
-
- Posts: 25
- Joined: Mon Sep 30, 2013 8:42 am
Re: Edit template for file snginx.conf
Ah I see, but I only need the snginx because the edit I do is only for the SSL part.
Re: Edit template for file snginx.conf
if yours web site work only htts
template .tpl will be
new directive add template .stpl
template .tpl will be
Code: Select all
server {
listen %ip%:%proxy_port%;
server_name %domain_idn% %alias_idn%;
return 301 https://%domain_idn%$request_uri;
}