Forum: NGINX nginx-0.7.40

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
5640e332954fc0006aea97a155ce0afd?d=identicon&s=25 Igor Sysoev (Guest)
on 2009-03-09 10:12
(Received via mailing list)
Changes with nginx 0.7.40                                        09 Mar

    *) Feature: the "location" directive supports captures in regular

    *) Feature: an "alias" directive with capture references may be used
       inside a location given by a regular expression with captures.

    *) Feature: the "server_name" directive supports captures in regular

    *) Workaround: the ngx_http_autoindex_module did not show the
       slash in directories on XFS filesystem; the issue had appeared in
       Thanks to Dmitry Kuzmenko.

Examples, alias:

    location ~ ^/users/(.+\.(?:gif|jpe?g|png))$ {
        alias  /data/w3/images/$1;


server {
    server_name   ~^(www\.)?(.+)$;

    location / {
        root  /sites/$2;

server {
    server_name   _; # nonexistent name

    location / {
        root  /sites/default;
Fda08117336cfde6562315df04b976e8?d=identicon&s=25 Dave Cheney (Guest)
on 2009-03-09 10:48
(Received via mailing list)
Igor, that is awesome. Thanks!


7b660a44f60a7ba9bb6e12d817f4b038?d=identicon&s=25 Mathew Davies (Guest)
on 2009-03-09 17:02
(Received via mailing list)
Brilliant feature.
2ed442571c411e079086bf64a5909d7b?d=identicon&s=25 Kon Wilms (Guest)
on 2009-03-09 17:26
(Received via mailing list)

On Mon, Mar 9, 2009 at 8:51 AM, Mathew Davies
539ecead12aa07ed8fa9807bcfbf34f1?d=identicon&s=25 郭振立 (Guest)
on 2009-03-10 07:14
(Received via mailing list)
Nice work!

Thanks a lot.
This topic is locked and can not be replied to.