server { root streamingtest; index index.html index.php; server_name streamingtest.bentasker.co.uk; ssl on; ssl_certificate streamingtest.bentasker.co.uk.crt; ssl_certificate_key streamingtest.bentasker.co.uk.key; ssl_session_timeout 5m; ssl_prefer_server_ciphers On; ssl_protocols TLSv1 TLSv1.1 TLSv1.2; location ~* \.(m3u8|ts|html|gif)$ { add_header Pragma public; add_header Cache-Control "public; max-age=3600"; # Will change once happy } location ~ /\.ht { deny all; } }