try_files and proxy_pass

Walter Cruz walter.php at
Tue Aug 18 05:39:01 MSD 2009

Hi! I would like to use a setting like that:

   location / {
       try_files $uri $uri/ @proxy;

   location @proxy {

With nginx serving static content and apache serving dinamic content. With
that setting. I got a error:

"proxy_pass" may not have URI part in location given by regular expression,
or inside named location, or inside the "if" statement, or inside the
"limit_except" block in

Is that a nginx limitation ? (Can't use a proxy in try_files fallback)

Nginx version: 0.7.61

- Walter
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the nginx mailing list