Jump to content

How to configure custom KVS Nginx rules in VestaCP


Tech Support
 Share

Recommended Posts

Please follow these steps to configure your VestaCP to use KVS Nginx rules.

 

1) Find out which rules you need first. Go to Settings -> Storage servers and open every storage that is located on this specific physical server (usually Local Videos and Local Albums). Each storage server displays Nginx config rules that you should add (storage servers for albums typically do not have any rules):

nginx_rules_in_kvs.thumb.png.c8581c9da063612607fcbf5597b77f8a.png

Copy-paste all rules into the same text file one by one, if you have them from multiple storage servers.

 

2) Use WinSCP program to connect to your server via SFTP protocol as a root user. Open /home/admin/conf/web directory and create 2 text files in this directory:

nginx.kvs-demo.com.conf_kvs
snginx.kvs-demo.com.conf_kvs

NOTE: replace kvs-demo.com with your domain name, you can see some similar files in this directory and you can check how your domain name is spelled in these files. Use the same spelling.

Put the same nginx rules into both created files: the rules that you've copied on step 1.

 

3) Login to VestaCP with root account. Go to Server tab on the top. Find Nginx service, mouse over it and use restart option:

vesta_nginx_restart.thumb.png.e321e4884952e040100aec4ce87303fb.png

 

4) Finished. In order to check, go to Plugins -> System audit in KVS admin panel and run Installation, Servers and Content Protection checks. You should not have any errors and warning regarding content protection.

  • Like 1
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...