Nginx cPanel plugin on Apache server in proxy mode

bosper

Registered
Jan 8, 2020
1
0
1
Bucharest
cPanel Access Level
Website Owner
Greetings cPanel savvies!

I have an Apache server with cPanel on it and a tube script (KVS) which requires Nginx in proxy mode for video protection.
In older cPanel versions I used nginx admin plugin which had a vhost config file to add the following commands for video protection

# protect videos from direct access
location /contents/videos/ {
root /home/cpanel_account_name/public_html;
limit_rate_after 2m;
internal;
}
just above to this command

# Enable browser cache for archives, documents & media files (TTL is 60 days)
location ~* \.(?:3gp|7z|avi|bmp|bz2|csv|divx|doc|docx|eot|exe|flac|flv|gz|less|mid|midi|mka|mkv|mov|mp3|mp4|mpeg|mpg|odp|ods|odt|ogg|ogm|ogv|opus|pdf|ppt|pptx|rar|rtf|swf|tar|tbz|tgz|tiff|txz|wav|webm|wma|wmv|xls|xlsx|xz|zip)$ {
set $CACHE_BYPASS_FOR_STATIC 1;
include proxy_params_common;
include proxy_params_static;
expires 60d;
}
In the last 2 years changed the server and on newer cPanel versions old nginx admin cannot be installed, instead server management installed Engintron.
My server management tried to add command files in Engintron, but this plugin doesn't have a vhost config file. I tried to add the commands in custom rules file, and in common http file. Didn't worked also.

For Engintron developers, especially @fevangelou, lr other people who used Engintron to config a server for hosting a tube website (KVS script), my server management does something wrong?
 

cPanelLauren

Product Owner
Staff member
Nov 14, 2017
13,295
1,255
313
Houston
Hello,

For this, I'd suggest going directly to the creator of the plugin for assistance. We wouldn't be experts in why there is an issue with their plugin or troubleshooting it.

I also want to mention that though it's in the experimental state currently we are working on supporting NGINX, you can read about this here: Brace Yourselves, NGINX is Coming | cPanel Blog