6 messages in ru.sysoev.nginxRe: expires off not applying
FromSent OnAttachments
Erik KarulfApr 16, 2007 7:20 pm 
Erik KarulfApr 19, 2007 10:50 pm 
Igor SysoevApr 20, 2007 12:01 am 
Erik KarulfApr 20, 2007 12:31 am 
Erik KarulfApr 20, 2007 12:36 am 
Igor SysoevApr 20, 2007 2:28 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:Re: expires off not applyingActions...
From:Erik Karulf (erik@public.gmane.org)
Date:Apr 20, 2007 12:36:30 am
List:ru.sysoev.nginx

Oh, and I remembered why I didn't use that (much cleaner) syntax like what you provided.

"proxy_pass" may not have URI part in location given by regular expression,

or inside the "if" statement, or inside the "limit_except" block

-Erik

On 4/20/07, Igor Sysoev <is-G@public.gmane.org> wrote:

On Mon, Apr 16, 2007 at 09:20:46PM -0500, Erik Karulf wrote:

if ($request_filename !~* "^.+.(php|php3)$") { root /www/forums.example.com/ <http://arcade.com/ >; expires 30d; break; }

You should use

location ~ .\.(php|php3)$ { proxy_pass http://127.0.0.1:8080/; expires off; }

Hi Igor Thanks for the help (and amazing webserver). I am trying (and perhaps I am misinterpreting the variable) to route based on the name of the file on the server side. The result is the server will notice that the file being called when you go to http://forums.example.com/ is actually /www/forums.example.com/index.php (through the index argument above). The goal is that I have a bunch of subdirectories that have index.php's, I would prefer not having to set those locations statically into the config file and instead have a regular expression evaluated per request. I do not know if this is possible, but it is my goal.

Cheers! -Erik