streaming dynamic downloads?

Igor Sysoev is at rambler-co.ru
Mon May 19 19:04:00 MSD 2008


On Mon, May 19, 2008 at 07:00:45PM +0400, Igor Sysoev wrote:

> On Mon, May 19, 2008 at 10:42:15AM -0400, jeff emminger wrote:
> 
> > >
> > > Could you show your configuraiton of "/export/" ?
> > >
> > Hi Igor,
> > 
> > I haven't explicitly configured '/export/', it is just a subdirectory
> > of the application configured at:
> 
> Then this is application bug.

Sorry, this is nginx bug, it should return correct redirect for static
directories.

> nginx return redirect for "/export" for following location:
> 
>      location /export/ {
>          proxy_pass    ...
>          or
>          fastcgi_pass  ...
>      }
> 
> > 
> > 
> > server {
> > 	listen	443;
> > 
> > 	ssl on;
> > 	ssl_certificate /etc/ssl/certs/secure.mysite.org.crt;
> > 	ssl_certificate_key /etc/ssl/private/secure.mysite.org.key;
> > 
> > 	server_name  secure.mysite.org;
> > 
> > 	access_log  logs/mysite.org.access.log  main;
> > 
> > 	location / {
> > 		root   /var/www/docs/mysite.org/secure;
> > 		index  index.html index.htm index.php;
> > 	}
> > 
> > 	error_page  404		  /404.html;
> > 
> > 	# redirect server error pages to the static page /50x.html
> > 	#
> > 	error_page   500 502 503 504  /50x.html;
> > 	location = /50x.html {
> > 		root   html;
> > 	}
> > 
> > 	# pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
> > 	#
> > 	location ~ \.php$ {
> > 		fastcgi_pass   127.0.0.1:9000;
> > 		fastcgi_index  index.php;
> > 		fastcgi_param  SCRIPT_FILENAME
> > /var/www/docs/mysite.org/secure/$fastcgi_script_name;
> > 		include	conf/fastcgi.conf;
> > 	}
> > 
> > 	# deny access to .htaccess files, if Apache's document root
> > 	# concurs with nginx's one
> > 	#
> > 	location ~ /\.ht {
> > 		deny  all;
> > 	}
> > }
> 
> -- 
> Igor Sysoev
> http://sysoev.ru/en/

-- 
Igor Sysoev
http://sysoev.ru/en/





More information about the nginx mailing list