Upstream setup with proxy and fastcgi?

Igor Sysoev igor at sysoev.ru
Mon Apr 18 22:28:40 MSD 2011


On Mon, Apr 18, 2011 at 02:25:51PM -0400, TECK wrote:
> Thanks Igor.
> With your suggested configuration, can I use try_files as listed below?
> 
> location / {
> root /var/www/html;
> try_files $uri $uri/ /index.php;
> }
> 
> location /forum/ {
> try_files $uri $uri/ /forum/data.php$args;
> }
> 
> location ~ \.php$ {
> fastcgi_pass php;
> include fastcgi.conf;
> }

Yes.


-- 
Igor Sysoev



More information about the nginx mailing list