Performance trouble after migration Squeeze to Wheezy

2013-05-24 Thread B.R.
Hello, First of all I need to emphasize the fact that I know WHeezy is not yet supported. What I am trying to determine how WHeezy could impact Nginx (compiled for Squeeze) performance. Since I made the upgrade, big files are being served in a slow fashion (~200 kiB/s). The directory serving them

Re: Rewriting and proxy problem

2013-05-24 Thread B.R.
Let's start by a huge RTFM? http://nginx.org/en/docs/ This ML is no customer service for lazy people, I guess. You may up for services to make other people do your job: http://nginx.com/services.html Best regards, --- *B. R.* On Fri, May 24, 2013 at 1:39 PM, Sergio Belkin wrote: > H folks! >

Rewriting and proxy problem

2013-05-24 Thread Sergio Belkin
H folks! I am completeley newbie to nginx I have the following config # Forward request to /demo to tomcat. This is for # the BigBlueButton api demos. location /demo { rewrite ^ /upvc; proxy_pass http://127.0.0.1:8080; proxy_redir

Re: Re[2]: Rewriting

2013-05-24 Thread B.R.
Pure wild guess: Maybe a missing trailing slash in the request resulting in a temporary redirection (and then processed again)? Have you checked the requests made on the client side for any sign of unwanted redirection? You could then use them to correct your rewrite directive. Hope I helped, ---

Re: proxy only certain assets based on host header?

2013-05-24 Thread Maxim Dounin
Hello! On Thu, May 23, 2013 at 09:07:21PM -0400, amagad wrote: > We're trying to proxy only certain assets like png|jpg|css only when the > host header is a certain DNS name. I tried to do this in the proxy.conf file > using something the example below but it doesnt like the if statement. Is > th

Re: valid_referers dynamic hostname

2013-05-24 Thread vlad...@binkmail.com
Thanks alot! I made a logical error when writing your expression by thinking that it will negate the comparison. Also, I appreciate you have explained that http/https matching as I was confused. My best regards, Vlad Maxim Dounin Wrote: ---

Re: Override Content-Type header with proxied requests

2013-05-24 Thread andrea.mandolo
Thanks for the reply!! This approach can be a good solution. I wonder if this can affect the server perfomance. Another solution could be to create a location for each file extension that only adds the correct Content-Type header. This is certainly less maintainable than a map, but is it better f

Re: proxy only certain assets based on host header?

2013-05-24 Thread António P . P . Almeida
location ~ ^/(?:stylesheets|images|javascripts|tools|flash|components)/ { error_page 418 = @proxied_assets; if ($http_host = dnsname.com) { return 418; } # add other directives here if need be... } location @proxied-assets { proxy_pass http://assethost; } ap