Welcome! Log In Create A New Profile

Advanced

Re: Traffic Limit and HTTP Header rewrite

December 27, 2009 01:40PM
Thanks for your reply.

I do need conditional logic, especially to re-write the "Content-Type"
header. So I can set it depending on whether the original file is *.js,
*.css or *.html when serving their gzip format. As I said before, I can
easily do that using Lighttpd via mod_magnet LUA script. So I am
wondering if I could do that in Nginx when I finally use it to replace
my Lighttpd (if it really could replace it).

杨镭 wrote:
> As for the http header rewrite, it depends on your needs. In simple
> cases, you can use "proxy_hide_header" and "add_header" directive to
> hide some headers from upstream response and add them back using
> variables supported by Nginx. This is more or less the same as "http
> header rewrite".
>
> However, if your "rewrite" needs include conditional logic, I just
> don't know how to do that.
>
>
> On Sun, Dec 27, 2009 at 8:25 PM, Anto <aryanto@chello.at
> <mailto:aryanto@chello.at>> wrote:
>
> Hello Everybody,
>
> Some time ago, it was mentioned that we can not limit the traffic
> per server on Nginx. We have to use traffic shaper at the OS level
> to do that. Is it still the case now?
>
> And I want to try Nginx, but I can not find any where in the
> documentations about how to do the HTTP header re-write. What I
> would like to do is to be able to re-write the HTTP header set by
> Drupal, especially the "Expires", "Cache-Control",
> "Last-Modified", "Content-Encoding" and "Content-Type" headers. I
> am using Lighttpd and I can do the removal and re-write of those
> HTTP headers via mod_magnet LUA script. Is there similar function
> like that in Nginx, which allow me to do that without changing
> anything in Drupal?
>
> Kind regards,
>
> Anto
>
>
>
> _______________________________________________
> nginx mailing list
> nginx@nginx.org <mailto:nginx@nginx.org>
> http://nginx.org/mailman/listinfo/nginx
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> 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

Traffic Limit and HTTP Header rewrite

anto December 27, 2009 07:32AM

Re: Traffic Limit and HTTP Header rewrite

杨镭 December 27, 2009 12:16PM

Re: Traffic Limit and HTTP Header rewrite

anto December 27, 2009 01:40PM

Re: Traffic Limit and HTTP Header rewrite

agentzh December 27, 2009 09:44PM

Re: Traffic Limit and HTTP Header rewrite

anto December 27, 2009 09:56PM

Re: Traffic Limit and HTTP Header rewrite

agentzh December 27, 2009 10:46PM

Re: Traffic Limit and HTTP Header rewrite

anto December 28, 2009 04:48AM

Re: Traffic Limit and HTTP Header rewrite

Aryanto Rachmad December 29, 2009 12:46PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 147
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