default page

Aleksandar Lazic al-nginx at none.at
Sat Jul 5 15:33:39 MSD 2008


On Die 01.07.2008 17:50, Igor Sysoev wrote:
>On Tue, Jul 01, 2008 at 10:27:45AM -0300, Marcos Neves wrote:
>
>> My current solution works:

[snipp]

>> location = /favicon.ico {
>>          if (!-f $request_filename) {
>>          alias html/favicon.ico;
>>          break;
>>          }
>> 
>> But alias can?t be used inside an if. Why that?
>
>This is internal problem. You may try
>
>  location = /favicon.ico {
>      if (!-f $request_filename) {
>          root html;
>          break;
>      }
>  }
>
>but anyway, "if (!-f $request_filename)" is ugly contruction.

Why do you mean this, is there a better solution?

BR

Aleks





More information about the nginx mailing list