Nginx rewrite rule for favicon.ico files

Igor Sysoev igor at sysoev.ru
Fri Aug 31 11:31:55 UTC 2012


On Aug 31, 2012, at 15:27 , nexon wrote:

> Igor Sysoev Wrote:
> -------------------------------------------------------
>> Why not to create a separate server block for each site instead of
>> this
>> if/rewrite mess ?
>> 
>> 
>> --
>> Igor Sysoev
>> 
>> _______________________________________________
>> nginx mailing list
>> nginx at nginx.org
>> http://mailman.nginx.org/mailman/listinfo/nginx
> 
> Can't do that, because I have to serve different favicon.ico to different
> subdomain.
> In example, there is several domains in server_name and some of them need 
> to have their own favicon.ico,
> if there is no favicon.ico for some of them, than they need to be served
> with the main favicon.ico file.

Anything except favicons in this servers is the same ?


--
Igor Sysoev



More information about the nginx mailing list