Serving executables over web

matt davies mjdavies at glam.ac.uk
Fri Nov 7 15:43:50 MSK 2008


aha!!

Solved that too

The file was marginally larger in size than the client_max_body_size  
variable in the  main nginx.conf size.

Tweaked that up a bit and it flies down now.

matt


On 7 Nov 2008, at 12:23, matt davies wrote:

> Sorry everyone, my bad
>
> :-)
>
> It is serving it, it only writes the record to the log once the file  
> has completed downloading it :-)
>
> I know need to work out why it's taking so long to download, that's  
> a whole different ballgame
>
> :-)
>
>
> On 7 Nov 2008, at 11:58, matt davies wrote:
>
>> Hello everyone, I've got the following lines in my host.conf that  
>> I'm including into my main nginx.conf file
>>
>> location ~* ^.+\.(pdf|mpg|avi|mp3|swf|zip|tgz|gz|rar|bz2|doc|xls| 
>> exe|ppt|txt|tar|mid|midi|wav|rtf|mpeg|jpg|jpeg|gif|png|ico|css|bmp| 
>> js)$ {
>>           root   /www/django/django_projects/son/static;
>>           limit_rate 5000K;
>>           access_log  /www/django/django_projects/log/ 
>> inform_nginx_django_media.log  download;
>>       }
>>
>> It works fine for all my js and css files, I can see them in the  
>> log no problem, but we have two 10mb .exe files that are taking an  
>> incredibly long time to download, and I can't find any mention of  
>> them in the media log file.  As you can see exe is in the list of  
>> executables, and the files themselves are definitely within the  
>> root defined.
>>
>> Can anyone think of any reason for this?
>>
>> It's as if the fastcgi that the django is using to run is serving  
>> the files instead.
>>
>> Any help on this would be greatly appreciated.
>>
>> Matt
>>
>>
>>
>
>






More information about the nginx mailing list