Guest User

Untitled

a guest
May 23rd, 2018
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.64 KB | None | 0 0
  1. server {
  2. listen *:80;
  3. server_name DOMAIN_NAME;
  4. root /home/mediaftp/public_html/;
  5. index index.php;
  6.  
  7. location / {
  8. try_files $uri $uri/ /index.php?$query_string;
  9. }
  10.  
  11. location ~ \.php$ {
  12. fastcgi_keep_conn on;
  13. fastcgi_pass 127.0.0.1:9000;
  14. fastcgi_index index.php;
  15. fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
  16. include fastcgi_params;
  17. }
  18.  
  19. # protect videos from direct access
  20. location /contents/videos/ {
  21. root /home/mediaftp/;
  22. internal;
  23.  
  24. # enable MP4 streaming
  25. location ~* .*\.mp4 {
  26. mp4;
  27. }
  28. }
  29. }
Add Comment
Please, Sign In to add comment