Static files download

Axel junk at devignon.fr
Wed Jun 9 19:35:31 MSD 2010


Actually, I have two active server sections. I tried on the other and the PDF works well. So I guess it's more a server configuration issue:


server	{
		listen 80;
		server_name www.xxxx.com;
		root /var/www/xxxx/prod/public;
		index index.php;


        log_format  main  '$remote_addr - $remote_user [$time_local] "$request" '
                      '$status $body_bytes_sent "$http_referer" '
                      '"$http_user_agent" "$http_x_forwarded_for"';
                access_log  /var/log/nginx/xxxx.log  main;

		location ~/
		{

			try_files $uri $uri/  @framework;

			fastcgi_pass 127.0.0.1:9000;
			fastcgi_index index.php;
			fastcgi_param SCRIPT_FILENAME  $document_root/$fastcgi_script_name;

            include fastcgi_params;

		}

        location ~* \.css|\.js|\.jpg|\.jpeg|\.png|\.gif|\.swf|\.svg|\.tiff$ {
               expires 30d;
        }


		location ~ /\. {
			deny  all;
		}

		location @framework
		{
			fastcgi_pass 127.0.0.1:9000;
			fastcgi_index index.php;
			fastcgi_param SCRIPT_FILENAME  $document_root/index.php;
			include fastcgi_params;

		}

}


limit_zone   videos  $binary_remote_addr  10m;

server {

          listen 80;
          server_name static.xxxx.com;
          root /var/www/xxxx/medias/;    
	  expires 90d;

          location /videos/ {
         	 keepalive_timeout     200 190;

                 #limit_conn   videos  2;
                 mp4;
                 limit_rate_after 512k;
                 limit_rate 512k;

		error_page   404 =  /videos/video_not_found.png;
          }
}




Tks

Axel


Le 9 juin 2010 à 16:58, Igor Sysoev a écrit :

> On Wed, Jun 09, 2010 at 04:47:46PM +0200, Axel wrote:
> 
>> Yes I have this include in nginx.conf in the http section
> 
> Could you create a debug log:
> http://nginx.org/en/docs/debugging_log.html
> 
> 
> -- 
> Igor Sysoev
> http://sysoev.ru/en/
> 
> _______________________________________________
> nginx mailing list
> nginx at nginx.org
> http://nginx.org/mailman/listinfo/nginx




More information about the nginx mailing list