7 messages in ru.sysoev.nginxRe: Conflicting location blocks...
FromSent OnAttachments
mikeSep 15, 2008 4:59 pm 
Maxim DouninSep 16, 2008 12:56 am 
mikeSep 16, 2008 1:17 am 
Igor SysoevSep 16, 2008 1:31 am 
Igor SysoevSep 16, 2008 1:36 am 
Maxim DouninSep 16, 2008 1:36 am 
mikeSep 16, 2008 1:56 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: Conflicting location blocks...Actions...
From:Igor Sysoev (is@rambler-co.ru)
Date:Sep 16, 2008 1:31:14 am
List:ru.sysoev.nginx

On Tue, Sep 16, 2008 at 01:18:18AM -0700, mike wrote:

Actually I think I've got this working, although I will take your regexp for the expires block into account.

server { listen 80; server_name test.com; index index.php; root /home/test/web/test.com/rfdev; rewrite /icommon/(.*) /common/$1 last; location /common { root /home/test/web/test.com/rfdev/core; location ~ \.php$ { fastcgi_pass 127.0.0.1:11004; } location ~* ^.+\.(jpg|jpeg|gif|css|png|js|ico|html)$ { expires max; } } location ~ \.php$ { fastcgi_pass 127.0.0.1:11004; } }

Why not use simple:

# static only location /icommon/ { alias /home/test/web/test.com/rfdev/core/common/; expires max; index index.php; }

location ~ \.php$ { fastcgi_pass 127.0.0.1:11004; }