git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Static gitweb content when using pathinfo

From
José María Escartín Esteban <ripero84@gmail.com>
Date
Apr 5, 2012, 13:54 UTC
Message-ID
<4F7DA413.2020502@gmail.com>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi,

I'm running gitweb in a server.example.com/gitweb/ scenario. If I don't enable pathinfo everything works fine, but when I enable pathinfo the static content stops showing up in the browser.

I'm not an HTML or perl expert, but I think that this may be due to a missing slash in the construction of the base tag: Using the upstream script I am getting

<base href="http://server.example.com/gitweb" />
and no static content.  Once I tune the script to add a final slash to the url
<base href="http://server.example.com/gitweb/" />
the static content shows up again.

Maybe I'm doing something wrong (am I?), and possibly this can be solved from the web server side, but maybe it also makes some sense to include in the script some check that the url used in the base tag ends with a slash. In that case, given my lack of perl skills, I would be really grateful if somebody implemented it.

Thank you for your attention.
Greetings,
	E.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)

iEYEARECAAYFAk99pBMACgkQY+7weQMem3y28wCeOotCIgFF8sT4LKgq599IhB/E 0qcAn2dri0Z61PjV90bxfBG1QMFD3c75 =6PBz -----END PGP SIGNATURE-----

Next: Jakub Narebski
Message 1 of 6 in “Static gitweb content when using pathinfo”
  1. José María Escartín EstebanApr 5, 2012
  2. Jakub NarebskiApr 5, 2012
  3. Jakub NarebskiApr 14, 2012
  4. José María Escartín EstebanApr 16, 2012
  5. Jakub NarebskiApr 17, 2012
  6. José María Escartín EstebanApr 24, 2012

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.