<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html; charset=ISO-8859-1"
 http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Thank you Maxim for extended description.<br>
<br>
Seems like I need some extra advice :)<br>
Let me describe my architecture and may be you will see better solution.<br>
I have openvpn server which storing some information at login time to
some temp file and sending throw DHCP local IP address to client.<br>
All 80 port transparently goes throw nginx as forward proxy, results
from nginx in comparing with apache even without keep-alive support on
highly loaded server MUCH better. No problems with memory usage, cpu
utilization, and we have 10% faster browsing. Thank you guys for
perfect web/proxy server.<br>
So... temp file is simple comma separated fields. From nginx part I'm
getting this file by file name which is equals to local IP address,
parsing it and providing to some scripts like input headers. If this
method is unsafe could you recommend me best way to <big>give this
fast changeable </big>session data to my scripts?<br>
<br>
Thank you again for fast and full answer.<br>
<br>
On 06/21/2010 12:33 PM, Maxim Dounin wrote:
<blockquote cite="mid:20100621193349.GO76989@mdounin.ru" type="cite">
  <pre wrap="">Hello!

On Mon, Jun 21, 2010 at 11:34:33AM -0700, Roman Vasilyev wrote:

  </pre>
  <blockquote type="cite">
    <pre wrap="">my module is generating some extra headers for PHP scripts. If I'm
registering input headers generator not correctly how better to do
that?
    </pre>
  </blockquote>
  <pre wrap="">
There is no such thing as "input headers generator".  Input 
headers are parsed from client's request.  If you want to pass to 
backend something different from what you got from client - you 
have to do it by means provided by appropriate backend module.  
It's proxy_set_header for proxy, fastcgi_param for fastcgi, 
uwsgi_param for uwsgi, scgi_param for fastcgi.

Please follow thread I've already linked:

<a class="moz-txt-link-freetext" href="http://nginx.org/pipermail/nginx-devel/2010-February/000135.html">http://nginx.org/pipermail/nginx-devel/2010-February/000135.html</a>

  </pre>
  <blockquote type="cite">
    <pre wrap="">PS: I've took this code from mod_rewrite.
    </pre>
  </blockquote>
  <pre wrap="">
There are no r-&gt;headers_in manipulations in nginx rewrite 
module.

Maxim Dounin

p.s. Please do not top post.  Thank you.

_______________________________________________
nginx mailing list
<a class="moz-txt-link-abbreviated" href="mailto:nginx@nginx.org">nginx@nginx.org</a>
<a class="moz-txt-link-freetext" href="http://nginx.org/mailman/listinfo/nginx">http://nginx.org/mailman/listinfo/nginx</a>
  </pre>
</blockquote>
<br>
</body>
</html>