Need help with favicon

Problems with the Windows version of XAMPP, questions, comments, and anything related.

Need help with favicon

Postby dennylin93 » 31. January 2007 10:20

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.
dennylin93
 
Posts: 4
Joined: 31. January 2007 09:32

Postby Wiedmann » 31. January 2007 10:30

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.
Wiedmann
AF Moderator
 
Posts: 17106
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany

Postby Tim Dawson » 01. February 2007 10:42

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.
ramasaig
Isle of Mull, Scotland

OS=WinXP Home SP2
Tim Dawson
 
Posts: 27
Joined: 26. January 2007 13:34
Location: Fionnphort, Isle of Mull

Postby Wiedmann » 01. February 2007 11:11

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.
Wiedmann
AF Moderator
 
Posts: 17106
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany

Postby Tim Dawson » 02. February 2007 02:07

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.
ramasaig
Isle of Mull, Scotland

OS=WinXP Home SP2
Tim Dawson
 
Posts: 27
Joined: 26. January 2007 13:34
Location: Fionnphort, Isle of Mull

Postby Wiedmann » 02. February 2007 09:01

Wiedmann
AF Moderator
 
Posts: 17106
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany

Postby Marctwo » 02. February 2007 21:34

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>
Marctwo
 
Posts: 5
Joined: 02. February 2007 20:56


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 75 guests