Nginx rewrite rule for favicon.ico files

nexon nginx-forum at nginx.us
Fri Aug 31 13:13:53 UTC 2012


> From you description I don't fully understand what exactly is your
> current 
> file structure but you can use try_files ( 
> http://wiki.nginx.org/HttpCoreModule#try_files ) and add the $host
> variable 
> in whatever place is needed.
> 
> For example:
> 
> location /favicon.ico {
>     try_files /images/$host/favicon_example.ico /favicon.ico;
> }
> 
> 
> rr 
> 
> _______________________________________________
> nginx mailing list
> nginx at nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx


Could you please be more specific in sintax?

Thank's

Posted at Nginx Forum: http://forum.nginx.org/read.php?2,230375,230395#msg-230395



More information about the nginx mailing list