location ~ \.mp4$ {
gzip off;
gzip_static off;
mp4;
limit_rate_after 10m;
limit_rate 1m;
}
In my cpnginx plugin for cpanel i have this sections:
- Settings
- Configuration Editor
- Rebuild Vhosts
- Restart Nginx
- Edit file Extensions
- Edit Proxy Settings
- Direct Push
- List Direct Push
- Set Expire Time
-----------------------------------------
-----------------------------------------
SETINGS
Cpnginx Port: 80
Expire Time: 30d
Cpphp Path : /usr/local/cpanel/3rdparty/bin/php
--------------------------------------------
Configuration Editor - this code
# cPanel Nginx Master configuration
user nobody;
error_log logs/error.log;
#Number of worker you need
worker_processes 1;
# How many connections a worker can handle maximum.
events {
worker_connections 50000;
}
http {
include mime.types;
default_type application/octet-stream;
sendfile on;
server_names_hash_max_size 10000;
server_names_hash_bucket_size 1024;
tcp_nopush on;
tcp_nodelay on;
keepalive_timeout 10;
gzip on;
gzip_min_length 1100;
gzip_buffers 4 32k;
gzip_types text/plain application/x-javascript text/xml text/css;
ignore_invalid_headers on;
client_header_timeout 3m;
client_body_timeout 3m;
send_timeout 3m;
include "/usr/local/nginx/conf/vhost.conf";
include "/etc/cpnginx/cpanelproxy.conf";
}
------------------------------------------------------------
Edit file Extensions - this list
jpg|jpeg|gif|png|ico|zip|tgz|gz|rar|bz2|iso|doc|xls|exe|pdf|ppt|txt|tar|mid|midi|wav|bmp|rtf|mp3|ogv|ogg|flv|swf|mpeg|mpg|mpeg4|mp4|avi|wmv|js|css|3gp|sis|sisx|nth
------------------------------------------------------------
Edit Proxy Settings
client_max_body_size 2000m;
client_body_buffer_size 512k;
proxy_send_timeout 90;
proxy_read_timeout 90;
proxy_buffer_size 32k;
proxy_buffers 16 32k;
proxy_busy_buffers_size 64k;
proxy_temp_file_write_size 64k;
proxy_connect_timeout 300s;
-----------------------------------------------------------
Direct Push - (This option will allow you to do complicated .htaccess redirects, 301 requests and password protected folders of domains and sub domains. You may need to rebuild nginx vhost and restart nginx server after enabling/disabling direct push.)
Is empty - no domain selected
----------------------------------------------------------
location ~ \.flv$ {
secure_link $arg_st,$arg_e;
secure_link_md5 p4ss#W0rd$uri$arg_e$remote_addr;
if ($secure_link = "") {
return 403;
}
if ($secure_link = "0") {
return 403;
}
flv;
}
location ~ \.mp4$ {
secure_link $arg_st,$arg_e;
secure_link_md5 p4ss#W0rd$uri$arg_e$remote_addr;
if ($secure_link = "") {
return 403;
}
if ($secure_link = "0") {
return 403;
}
mp4;
mp4_buffer_size 1m;
mp4_max_buffer_size 5m;
}
nginx is difficult for runinng but i think you installed cpnginx with is plugin for whm/control panel to reduce load of traffic on server. it uses nginx by redirecting visitors though nginx instead of apache...... So Conclusion Is Apache Still Working Along With nginx.........
Yes is the cpnginx plugin, now the server load more fast all content but i cant skyp the video posicion in the player, is like the progresive streaming.
Any help on this?
]]>I have instaled in my server the cpnginx - http://cpnginx.com/
Apache 2.2
ContOS 6.3
WHM 11.34
---------------------------------------------------
First step - In the admin panel of ASPro (admin-video-config-view) i have selected
Streaming Method: pseudostreaming
Streaming Server: nginx
This is correct????
------------------------------------------------
Right now i cant skyp the pocicion in the player. I need to make some configuration file for nginx, but i have no idea about how and where i need to upload this file.
Thanks
]]>