Rewrite rule for nginx image?

Igor Sysoev is at rambler-co.ru
Sun Jan 6 22:29:52 MSK 2008


On Sun, Jan 06, 2008 at 02:11:48PM -0500, Floren Munteanu wrote:

> I have a small image that I've downloaded from nginx.net and use it a logo
> for the 404 pages.
> What would be the code I need to insert into nginx.conf, in order to
> automatically point the image location to a specific path or URL?

I do not understand your question, but probably:

        location = /logo.gif {
            root  /path/to;

            # or
            #alias  /path/to/logo.gif;
        }


-- 
Igor Sysoev
http://sysoev.ru/en/





More information about the nginx mailing list