Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- server {
- listen *:80;
- server_name DOMAIN_NAME;
- root /home/mediaftp/public_html/;
- index index.php;
- location / {
- try_files $uri $uri/ /index.php?$query_string;
- }
- location ~ \.php$ {
- fastcgi_keep_conn on;
- fastcgi_pass 127.0.0.1:9000;
- fastcgi_index index.php;
- fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
- include fastcgi_params;
- }
- # protect videos from direct access
- location /contents/videos/ {
- root /home/mediaftp/;
- internal;
- # enable MP4 streaming
- location ~* .*\.mp4 {
- mp4;
- }
- }
- }
Add Comment
Please, Sign In to add comment