I have read all of the answers related with webfaction + apache + django + favicons but none of them fulfils my needs.
My dir structure is this (as usual):
webapps/
|_____django_app/
|________apache2/
|________favicon.ico
|________favicon/
|________djagno_project/
As you can see I have both a favicon.ico
for most browsers to search and a favicon folder which includes different favicon sizes (.png) for other browsers and operating systems (for android, iOS etc.)
I followed ryans approach for my favicon.ico and it works perfectly. So I guessed that the following code (in order to serve the .pngs inside the favicon dir) inside my httpd.conf would work, BUT it didn't.
<Location "/favicon/*"> SetHandler None </Location>
alias /favicon/* /home/username/webapps/django_app/favicon/
Inside my html I have declared all of my *.png as <link rel="apple-touch-icon" sizes="60x60" href="/favicon/apple-touch-icon-60x60.png"$gt; etc.
How do I serve all these *.pngs?
[EDIT] Forgot to mention that I can see www.mywebsite.com/favicon.ico
but not (404 is thrown) www.mywebsite.com/favicon/apple-touch-icon-60x60.png
asked
29 Apr '16, 07:08
nik
130●2●11
accept rate:
16%