# Nginx-0.7.27

**URL:** <https://www.ruby-forum.com/t/nginx-0-7-27/155667>\
**Category:** NGINX\
**Created:** [December 15, 2008, 12:44pm UTC](https://www.ruby-forum.com/t/nginx-0-7-27/155667 "2008-12-15T12:44:20Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![imixaly4](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/i/3ab097/32.png) [@imixaly4](https://www.ruby-forum.com/u/imixaly4)\
**Post date:** [December 15, 2008, 12:44pm UTC](https://www.ruby-forum.com/t/nginx-0-7-27/155667/1 "2008-12-15T12:44:20Z")

</div>

Changes with nginx 0.7.27 15 Dec  
2008

```
*) Feature: the "try_files" directive.

*) Feature: variables support in the "fastcgi_pass" directive.

*) Feature: now the $geo variable may get an address from a
   variable.
   Thanks to Andrei Nigmatulin.

*) Feature: now a location's modifier may be used without space 

```

before  
name.

```
*) Feature: the $upstream_response_length variable.

*) Bugfix: now a "add_header" directive does not add an empty value.

*) Bugfix: if zero length static file was requested, then nginx just
   closed connection; the bug had appeared in 0.7.25.

*) Bugfix: a MOVE method could not move file in non-existent 

```

directory.

```
*) Bugfix: a segmentation fault occurred in worker process, if no 

```

one  
named location was defined in server, but some one was used in an  
error\_page directive.  
Thanks to Sergey B…

---

<div class="post-metadata">

**Author:** ![imixaly4](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/i/3ab097/32.png) [@imixaly4](https://www.ruby-forum.com/u/imixaly4)\
**Post date:** [December 15, 2008, 2:57pm UTC](https://www.ruby-forum.com/t/nginx-0-7-27/155667/2 "2008-12-15T14:57:41Z")

</div>

## Nginx 0.7.27 for Windows is now available: [http://cli.gs/n727](http://cli.gs/n727)

Kevin W.

---

<div class="post-metadata">

**Author:** ![imixaly4](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/i/3ab097/32.png) [@imixaly4](https://www.ruby-forum.com/u/imixaly4)\
**Post date:** [December 15, 2008, 3:12pm UTC](https://www.ruby-forum.com/t/nginx-0-7-27/155667/3 "2008-12-15T15:12:58Z")

</div>

Where can I found examples about how to use try\_files and variables  
support in the “fastcgi\_pass” directive?

Marcos N.  
+55 44 3263-8132  
+55 44 9918-8488

2008/12/15 Igor S. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid):

---

<div class="post-metadata">

**Author:** ![imixaly4](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/i/3ab097/32.png) [@imixaly4](https://www.ruby-forum.com/u/imixaly4)\
**Post date:** [December 15, 2008, 3:40pm UTC](https://www.ruby-forum.com/t/nginx-0-7-27/155667/4 "2008-12-15T15:40:02Z")

</div>

On Mon, Dec 15, 2008 at 12:04:45PM -0200, Marcos N. wrote:

> Where can I found examples about how to use try\_files and variables  
> support in the “fastcgi\_pass” directive?

fastcgi\_pass variable usage (just demonstration):

```
    location \.php$ {
        resolver 127.0.0.1;
        set $backend back1:9000;
        fastcgi_pass $backend;
    }

```

back1 will be resolved using named server on 127.0.0.1.  
You may also describe back1 upstream to disable onfly resolution:

```
upstream back1 {
    server 192.168.1.1:9000;
}

server {

    location \.php$ {
        set $backend back1;
        fastcgi_pass $backend;
    }

```

or just use IP address:

```
    location \.php$ {
        set $backend 192.168.1.1:9000;
        fastcgi_pass $backend;
    }

```

try\_files:

Mongrel:

location / {  
try\_files /system/maintenance.html  
$uri $uri/index.html $uri.html  
@mongrel;  
}

location @mogrel {  
proxy\_pass [http://mongrel](http://mongrel);  
}

Drupal/FastCGI:

location / {  
try\_files $uri @drupal;  
}

location ~ .php$ {  
try\_files $uri @drupal;

```
fastcgi_param SCRIPT_FILENAME /path/to/$uri;
... other fastcgi_param

```

}

location = @drupal {  
fastcgi\_pass …;

```
fastcgi_param SCRIPT_FILENAME /path/to/index.php;
fastcgi_param QUERY_STRING q=$request_uri;

... other fastcgi_param

```

}

Joomla/FastCGI:

location / {  
try\_files $uri @joomla;  
}

location ~ .php$ {  
try\_files $uri @joomla;

```
fastcgi_param SCRIPT_FILENAME /path/to/$uri;
... other fastcgi_param

```

}

location = @joomla {  
fastcgi\_pass …;

```
fastcgi_param SCRIPT_FILENAME /path/to/index.php;

... other fastcgi_param

```

}

---

<div class="post-metadata">

**Author:** ![imixaly4](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/i/3ab097/32.png) [@imixaly4](https://www.ruby-forum.com/u/imixaly4)\
**Post date:** [December 15, 2008, 4:05pm UTC](https://www.ruby-forum.com/t/nginx-0-7-27/155667/5 "2008-12-15T16:05:21Z")

</div>

On Mon, Dec 15, 2008 at 12:39:57PM -0200, Marcos N. wrote:

> try\_files will be very usefu!!  
> Can it be used outside location context?

No, currently it can be use inside location only.  
How do you want to use it in server context ?

---

<div class="post-metadata">

**Author:** ![imixaly4](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/i/3ab097/32.png) [@imixaly4](https://www.ruby-forum.com/u/imixaly4)\
**Post date:** [December 15, 2008, 4:14pm UTC](https://www.ruby-forum.com/t/nginx-0-7-27/155667/6 "2008-12-15T16:14:12Z")

</div>

I check my conf and found no reason to.  
Thanks!

Marcos N.  
+55 44 3263-8132  
+55 44 9918-8488

2008/12/15 Igor S. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid):

---

<div class="post-metadata">

**Author:** ![imixaly4](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/i/3ab097/32.png) [@imixaly4](https://www.ruby-forum.com/u/imixaly4)\
**Post date:** [December 15, 2008, 3:50pm UTC](https://www.ruby-forum.com/t/nginx-0-7-27/155667/7 "2008-12-15T15:50:02Z")

</div>

try\_files will be very usefu!!  
Can it be used outside location context?

Marcos N.  
+55 44 3263-8132  
+55 44 9918-8488

2008/12/15 Igor S. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid):
