<div dir="ltr">The nginx documentation has plenty of information on how to serve static files directly:<div><br></div><div><a href="https://www.nginx.com/resources/admin-guide/serving-static-content/">https://www.nginx.com/resources/admin-guide/serving-static-content/</a><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On 10 March 2016 at 10:11, Richard Reina <span dir="ltr"><<a href="mailto:gatorreina@gmail.com" target="_blank">gatorreina@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>Christian,<br><br></div>I have determined that the problem is due to http byte range request which the server must support when downloading videos to iOS. The soultion is I am told to have NGINX serve videos files directly which is something I have not been able to figure out in nginx.conf. If anyone knows how I can modify my config (below) to achieve this I would be very grateful.<br><br><pre style="font-family:inconsolata,"lucida console",monaco,"andale mono","bitstream vera sans mono",consolas,monospace;color:rgb(51,51,51);font-size:13px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;word-spacing:0px;background-color:rgb(248,248,248)">server {
<a name="-830099282_l-2" style="color:rgb(0,51,204)"></a>    listen 80;
<a name="-830099282_l-3" style="color:rgb(0,51,204)"></a>    server_name <a href="http://almslete.com" target="_blank">almslete.com</a>;
<a name="-830099282_l-4" style="color:rgb(0,51,204)"></a>    rewrite ^/(.*) <a href="https://mydomain.com/$1" target="_blank">https://mydomain.com/$1</a> permanent;
<a name="-830099282_l-5" style="color:rgb(0,51,204)"></a>           }
<a name="-830099282_l-6" style="color:rgb(0,51,204)"></a>
<a name="-830099282_l-7" style="color:rgb(0,51,204)"></a>server {
<a name="-830099282_l-8" style="color:rgb(0,51,204)"></a>    listen 443 ssl;
<a name="-830099282_l-9" style="color:rgb(0,51,204)"></a>    server_name <a href="http://almslete.com" target="_blank">almslete.com</a>;
<a name="-830099282_l-10" style="color:rgb(0,51,204)"></a>    ssl_certificate /home/starman/mydomain.com.certificicate.crt;
<a name="-830099282_l-11" style="color:rgb(0,51,204)"></a>    ssl_certificate_key /home/infinityanbeyond/mygroovykey.com.key;
<a name="-830099282_l-12" style="color:rgb(0,51,204)"></a>    client_max_body_size 20M;
<a name="-830099282_l-13" style="color:rgb(0,51,204)"></a>
<a name="-830099282_l-14" style="color:rgb(0,51,204)"></a>    location / {
<a name="-830099282_l-15" style="color:rgb(0,51,204)"></a>
<a name="-830099282_l-16" style="color:rgb(0,51,204)"></a>      # Serve static files directly:
<a name="-830099282_l-17" style="color:rgb(0,51,204)"></a>         if (-f $request_filename) {
<a name="-830099282_l-18" style="color:rgb(0,51,204)"></a>               expires 30d;
<a name="-830099282_l-19" style="color:rgb(0,51,204)"></a>               break;
<a name="-830099282_l-20" style="color:rgb(0,51,204)"></a>            }
<a name="-830099282_l-21" style="color:rgb(0,51,204)"></a>
<a name="-830099282_l-22" style="color:rgb(0,51,204)"></a>      proxy_set_header X-Forwarded-Proto $scheme;
<a name="-830099282_l-23" style="color:rgb(0,51,204)"></a>      proxy_set_header Host $http_host;
<a name="-830099282_l-24" style="color:rgb(0,51,204)"></a>      proxy_set_header X-Forwarded-Host $http_host;
<a name="-830099282_l-25" style="color:rgb(0,51,204)"></a>      proxy_set_header X-Real-IP $remote_addr;
<a name="-830099282_l-26" style="color:rgb(0,51,204)"></a>      proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
<a name="-830099282_l-27" style="color:rgb(0,51,204)"></a>        proxy_pass <a href="http://localhost:5000" target="_blank">http://localhost:5000</a>;
<a name="-830099282_l-28" style="color:rgb(0,51,204)"></a>          }
<a name="-830099282_l-29" style="color:rgb(0,51,204)"></a>    }</pre><br></div><div class="gmail_extra"><br><div class="gmail_quote">2016-03-10 11:53 GMT-06:00 Christian Huldt <span dir="ltr"><<a href="mailto:christian@solvare.se" target="_blank">christian@solvare.se</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span>Den 2016-03-10 kl. 15:54, skrev Richard Reina:<br>
> Does anyone know if there is anything related to an<br>
> NGINX->Starman->Dancer stack that would prevent html5 videos from<br>
> playing on safari iOS (on an Iphone or Ipad)? I realize that such a<br>
> idea seems unlikley, but this embeded video<br>
> <a href="http://www.w3schools.com/html/html5_video.asp" rel="noreferrer" target="_blank">http://www.w3schools.com/html/html5_video.asp</a> plays on my ipnone.<br>
> However, when I download the video and put in my Dancer2 app and use<br>
> their markup (below) the video plays perfectly on a desktop but will<br>
> not play on my Iphone. Being that I am downloading their video it<br>
> cannot be an encoding issue.<br>
><br>
> <h3>HTML Video Example.  Courtesy of <a<br>
> href="<a href="http://www.bigbuckbunny.org/" rel="noreferrer" target="_blank">http://www.bigbuckbunny.org/</a>" target="_blank">Big Buck<br>
> Bunny</a>.</h3><br>
> <div class="w3-padding w3-white notranslate"><br>
>   <div style="text-align:center"><br>
>   <video id="video1" style="width:600px;max-width:100%;" controls><br>
>     <source src="user_vids/uploads/user_vidL_5_111222333.mp4"<br>
> type="video/mp4"><br>
>     <source src="user_vids/uploads/user_vidL_5_111222333.ogv"<br>
> type="video/ogg"><br>
>     Your browser does not support HTML5 video.<br>
>   </video><br>
> </div><br>
> </div><br>
<br>
</span>Is user_vids/uploads/user_vidL_5_111222333.mp4 assigned the proper MIME<br>
(something like video/mp4...) ?<br>
<br>
<br>_______________________________________________<br>
dancer-users mailing list<br>
<a href="mailto:dancer-users@dancer.pm" target="_blank">dancer-users@dancer.pm</a><br>
<a href="http://lists.preshweb.co.uk/mailman/listinfo/dancer-users" rel="noreferrer" target="_blank">http://lists.preshweb.co.uk/mailman/listinfo/dancer-users</a><br>
<br></blockquote></div><br></div>
<br>_______________________________________________<br>
dancer-users mailing list<br>
<a href="mailto:dancer-users@dancer.pm">dancer-users@dancer.pm</a><br>
<a href="http://lists.preshweb.co.uk/mailman/listinfo/dancer-users" rel="noreferrer" target="_blank">http://lists.preshweb.co.uk/mailman/listinfo/dancer-users</a><br>
<br></blockquote></div><br></div>