* Can't get the favicon to work on OpenBSD
@ 2025-10-05 11:50 Sadeep Madurange
2025-10-05 12:57 ` Alfred Bühler
0 siblings, 1 reply; 7+ messages in thread
From: Sadeep Madurange @ 2025-10-05 11:50 UTC (permalink / raw)
To: cgit
Dear list,
I installed cgit on an OpenBSD server. Everything went well except for
the favicon. I placed my favicon in /var/www/cgit (chroot) directory
with the following permissions:
-rw-r--r-- 1 www daemon 408142 Oct 5 11:16 favicon.ico
In cgitrc, I have 'favicon=/favicon.ico'. However, the request in the
browser to get the favicon is failing with 404 error.
--
Sadeep W. Don
PGP: 103BF9E3E750BF7E
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Can't get the favicon to work on OpenBSD
2025-10-05 11:50 Can't get the favicon to work on OpenBSD Sadeep Madurange
@ 2025-10-05 12:57 ` Alfred Bühler
2025-10-05 13:18 ` Sadeep Madurange
0 siblings, 1 reply; 7+ messages in thread
From: Alfred Bühler @ 2025-10-05 12:57 UTC (permalink / raw)
To: cgit
On 2025-10-05 13:50, Sadeep Madurange wrote:
> -rw-r--r-- 1 www daemon 408142 Oct 5 11:16 favicon.ico
Maybe a 400k favicon might be too large?
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Can't get the favicon to work on OpenBSD
2025-10-05 12:57 ` Alfred Bühler
@ 2025-10-05 13:18 ` Sadeep Madurange
2025-10-05 14:09 ` Alfred Bühler
0 siblings, 1 reply; 7+ messages in thread
From: Sadeep Madurange @ 2025-10-05 13:18 UTC (permalink / raw)
To: Alfred Bühler; +Cc: cgit
On 2025-10-05 14:57:08, Alfred Bühler wrote:
> On 2025-10-05 13:50, Sadeep Madurange wrote:
> > -rw-r--r-- 1 www daemon 408142 Oct 5 11:16 favicon.ico
> Maybe a 400k favicon might be too large?
Tried with a 16x16 one. That didn't work either:
-rw-r--r-- 1 www daemon 1150 Oct 5 13:13 favicon.ico
--
Sadeep W. Don
PGP: 103BF9E3E750BF7E
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Can't get the favicon to work on OpenBSD
2025-10-05 13:18 ` Sadeep Madurange
@ 2025-10-05 14:09 ` Alfred Bühler
2025-10-05 14:49 ` Sadeep Madurange
0 siblings, 1 reply; 7+ messages in thread
From: Alfred Bühler @ 2025-10-05 14:09 UTC (permalink / raw)
To: Sadeep Madurange; +Cc: cgit
May I assume you tried without that favicon spec in cgitrc?
Here it works out of the box.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Can't get the favicon to work on OpenBSD
2025-10-05 14:09 ` Alfred Bühler
@ 2025-10-05 14:49 ` Sadeep Madurange
2025-10-08 13:46 ` W. D. Sadeep
0 siblings, 1 reply; 7+ messages in thread
From: Sadeep Madurange @ 2025-10-05 14:49 UTC (permalink / raw)
To: Alfred Bühler; +Cc: cgit
On 2025-10-05 16:09:43, Alfred Bühler wrote:
> May I assume you tried without that favicon spec in cgitrc?
> Here it works out of the box.
Yes, I tried commenting out the favicon setting to no avail. My complete
cgitrc file now is:
cache-size=1000
clone-url=git@git.asciimx.com:/repos/$CGIT_REPO_URL
footer=/conf/cgit.footer
css=/cgit.css
enable-index-owner=0
enable-http-clone=0
enable-index-links=0
enable-commit-graph=1
enable-log-filecount=1
enable-log-linecount=1
branch-sort=age
# favicon=/favicon.ico
max-stats=quarter
root-title=ASCIIMX Repositories
root-desc=My description
snapshots=tar.gz
mimetype.gif=image/gif
mimetype.html=text/html
mimetype.jpg=image/jpeg
mimetype.jpeg=image/jpeg
mimetype.pdf=application/pdf
mimetype.png=image/png
mimetype.svg=image/svg+xml
readme=:README
virtual-root=/
scan-path=/htdocs/src
repo.snapshots=0
repo.enable-log-linecount=0
repo.max-stats=month
--
Sadeep W. Don
PGP: 103BF9E3E750BF7E
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Can't get the favicon to work on OpenBSD
2025-10-05 14:49 ` Sadeep Madurange
@ 2025-10-08 13:46 ` W. D. Sadeep
2025-10-09 11:51 ` Alfred Bühler
0 siblings, 1 reply; 7+ messages in thread
From: W. D. Sadeep @ 2025-10-08 13:46 UTC (permalink / raw)
To: Alfred Bühler; +Cc: cgit
On 2025-10-05 22:49:07, Sadeep Madurange wrote:
> On 2025-10-05 16:09:43, Alfred Bühler wrote:
> > May I assume you tried without that favicon spec in cgitrc?
> > Here it works out of the box.
>
> Yes, I tried commenting out the favicon setting to no avail.
Turned out this was a misconfiguration in my web server config. I'd
forgotten to add the following to serve the favicon.
location "/favicon.ico" {
root "/cgit"
no fastcgi
}
Sorry for the noise.
--
W. D. Sadeep
PGP: 103BF9E3E750BF7E
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Can't get the favicon to work on OpenBSD
2025-10-08 13:46 ` W. D. Sadeep
@ 2025-10-09 11:51 ` Alfred Bühler
0 siblings, 0 replies; 7+ messages in thread
From: Alfred Bühler @ 2025-10-09 11:51 UTC (permalink / raw)
To: W. D. Sadeep; +Cc: cgit
On 2025-10-08 15:46, W. D. Sadeep wrote:
> Sorry for the noise.
No problem, thanks for posting your solution.
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2025-10-09 11:51 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-10-05 11:50 Can't get the favicon to work on OpenBSD Sadeep Madurange
2025-10-05 12:57 ` Alfred Bühler
2025-10-05 13:18 ` Sadeep Madurange
2025-10-05 14:09 ` Alfred Bühler
2025-10-05 14:49 ` Sadeep Madurange
2025-10-08 13:46 ` W. D. Sadeep
2025-10-09 11:51 ` Alfred Bühler
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).