Re: Adding Favicon To SM Login Screen

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Carlos Williams wrote:
> On Tue, Sep 16, 2008 at 12:22 PM, Paul Carpenter
> <paul@xxxxxxxxxxxxxxxxxxxxxxxxxxx> wrote:
>> Why not just load it in the root directory of the squirrelmail?
>>
>> That is the default location for browsers to request it from.
>> Never do anything but that myself for other sites.
> 
> I am not sure if I understand. Are you saying that I should simply
> drop the single file <favicon.ico> in /etc/squirrelmail?

If that is the root of the website that your webserver points to
for your squirrelmail domain name.

e.g. if http://webmail.example.com/ points to /etc/squirrelmail

Then yes. (see later)

Mind you /etc/squirrelmail seems a strange location to me, your
mileage may vary.

> Don't I need to reference some code in a file to render the file
> visible? I think I am missing something.

The file is visible, because the clients request it. You can see this
by looking at your access logs for your existing squirrelmail website.

You do of course have something like Apache and have separate log files
for access and error logs for the squirrelmail website.

e.g.

   DocumentRoot <path to squirrelmail>
   ErrorLog logs/webmail/error_log
   CustomLog logs/webmail/access_log common
   ServerName webmail.example.com

This would create error_log and access_log in logs/webmail folder
below Apache root (often /var/www/). This is always helpful for checking
specific site errors, when virtual hosting, and for only seeing errors.

Typical errors when favicon.ico NOT set in root directory and NO <link>
tag reference in web pages.

193.123.228.22 - - [15/Jul/2008:09:08:01 +0100] "GET /favicon.ico 
HTTP/1.1" 404 309
81.174.165.43 - - [24/Jul/2008:12:27:57 +0100] "GET /favicon.ico 
HTTP/1.1" 404 309
77.44.46.42 - - [10/Sep/2008:14:52:25 +0100] "GET /favicon.ico HTTP/1.1" 
404 309

So if you just place the file 'favicon.ico' at correct size and format
in the squirrelmail website root directory, the file will be fetched by 
the browsers.

-- 
Paul Carpenter          | paul@xxxxxxxxxxxxxxxxxxxxxxxxxxx
<http://www.pcserviceselectronics.co.uk/>    PC Services
<http://www.pcserviceselectronics.co.uk/fonts/> Timing Diagram Font
<http://www.gnuh8.org.uk/>  GNU H8 - compiler & Renesas H8/H8S/H8 Tiny
<http://www.badweb.org.uk/> For those web sites you hate

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
-----
squirrelmail-users mailing list
Posting guidelines: http://squirrelmail.org/postingguidelines
List address: squirrelmail-users@xxxxxxxxxxxxxxxxxxxxx
List archives: http://news.gmane.org/gmane.mail.squirrelmail.user
List info (subscribe/unsubscribe/change options): https://lists.sourceforge.net/lists/listinfo/squirrelmail-users

[Index of Archives]     [Video For Linux]     [Yosemite News]     [Yosemite Photos]     [gtk]     [KDE]     [Cyrus SASL]     [Gimp on Windows]     [Steve's Art]     [Webcams]

  Powered by Linux