3 messages in ru.sysoev.nginxHello
FromSent OnAttachments
Mansoor PeerbhoyJul 23, 2007 2:03 am 
Igor SysoevJul 23, 2007 2:45 am 
Mansoor PeerbhoyJul 23, 2007 2:53 am 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:HelloActions...
From:Mansoor Peerbhoy (mans@public.gmane.org)
Date:Jul 23, 2007 2:03:08 am
List:ru.sysoev.nginx

Hello everyone

This is my first post on the NGINX mailing list. First off, fantastic software, Igor, although NGINX fame speaks for itself.

Anyway, a quick question:

I am using NGINX as an HTTP (reverse) proxy, and I need to conditionally
redirect some URLs to an external FASTCGI server. I have read the HTTP rewrite module documentation at
http://wiki.codemongers.com/NginxHttpRewriteModule and I see that there are ways
to conditionally rewrite certain URLs.

I wonder if there is any complete set of NGINX variables ( A sort of NGINX
variable reference ) that I can refer to ?

The reason I ask for such a reference is, because the conditions for a rewrite,
in my case, are rather complicated.

For instance, I should like to say: . If URL begins with /xxxx/ AND if the HTTP method is POST, AND if there is no
cookie named CCCC in the HTTP header, then redirect the url to /abc/def/
otherwise let it fall through to the default handler.

I wonder if this is possible using the syntax described at
http://wiki.codemongers.com/NginxHttpRewriteModule