Page 1 of 1

Need help with favicon

PostPosted: 31. January 2007 10:20
by dennylin93
Can anyone tell me how to disable or replace the default favicon or where I can find the settings of the favicon?

Thanks in advance.

PostPosted: 31. January 2007 10:30
by Wiedmann
Can anyone tell me how to disable

Delete the icon file.

or replace

Replace the icon file.

or where I can find the settings of the favicon?

It's just the existence of this file in DocumentRoot.

PostPosted: 01. February 2007 10:42
by Tim Dawson
That means in the 'htdocs' folder. Unfortunately that means that if you are using Apache as your local host for off-line testing of several sites (saved in different folders within 'htdocs'), you'll only ever get the one favicon to display for all the sites. You can change it manually, of course.

If there's a way to change it so that the favicon in the site folder is displayed, will someone please tell us.

PostPosted: 01. February 2007 11:11
by Wiedmann
that means that if you are using Apache

Or any other webserver.

If there's a way to change it so that the favicon in the site folder is displayed,

Ok, now you are not talking about the XAMPP favicon. You can also define a favicon with a "link rel" tag in html.

PostPosted: 02. February 2007 02:07
by Tim Dawson
Wiedmann wrote:
Or any other webserver.


I've used Sambar as localhost for several years, and it always displayed the favicon of the site being displayed (i.e. htdocs\sitefolder\favicon). Hence my question about setting Apache to do the same. I'd want to avoid having to set each page to show the root favicon for localhost purposes when it's not necessary to do it for a live site.

PostPosted: 02. February 2007 09:01
by Wiedmann

PostPosted: 02. February 2007 21:34
by Marctwo
Your best to leave htdocs as the example that it's there for. Make another directory (webs or www, etc.) for your own sites. Each new site has it's own completely independant folder which will also contain it's own document root. The dir' tree may look something like this:
Code: Select all
C:/
    xampp/
        apache/
        ...
        htdocs/
        ...
        webs/
            website1/
            ...
            website6/
            newwebsite/
                images/
                ...
                scripts/
                ...
                root/
                    about/
                    ...
                    contact/
                    ....
                    index.html
                    ...
                    favicon.ico
        etc...

Your vhost definition in the apache conf file will look something like this:
Code: Select all
<VirtualHost *:80>
    ServerName www.newwebsite.com
    DocumentRoot "/xampp/webs/newwebsite/root"
    etc...
</VirtualHost>