Welcome! Log In Create A New Profile

Advanced

Re: Static files download

Axel
June 09, 2010 11:40AM
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@nginx.org
> http://nginx.org/mailman/listinfo/nginx


_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx
Subject Author Posted

Static files download

Axel June 09, 2010 10:44AM

Re: Static files download

Igor Sysoev June 09, 2010 10:46AM

Re: Static files download

Axel June 09, 2010 10:52AM

Re: Static files download

Igor Sysoev June 09, 2010 11:02AM

Re: Static files download

Axel June 09, 2010 11:40AM

Re: Static files download

Axel June 09, 2010 02:10PM

Re: Static files download

Igor Sysoev June 09, 2010 02:16PM

Re: Static files download

Grzegorz Sienko June 09, 2010 06:10PM

Re: Static files download

Axel June 10, 2010 04:18AM

Re: Static files download

Igor Sysoev June 10, 2010 04:22AM

Re: Static files download

Axel June 10, 2010 04:42AM

Re: Static files download

Axel June 10, 2010 06:28AM

Re: Static files download

Igor Sysoev June 10, 2010 08:20AM

Re: Static files download

Axel June 10, 2010 09:14AM

Re: Static files download

Igor Sysoev June 10, 2010 09:28AM

Re: Static files download

edogawaconan June 10, 2010 09:30AM

Re: Static files download

Axel June 10, 2010 10:00AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 300
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready