git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Static gitweb content when using pathinfo
@ 2012-04-05 13:54 José María Escartín Esteban
  2012-04-05 21:14 ` Jakub Narebski
  0 siblings, 1 reply; 6+ messages in thread
From: José María Escartín Esteban @ 2012-04-05 13:54 UTC (permalink / raw)
  To: git; +Cc: Jakub Narebski

-----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-----

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2012-04-24  7:02 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-04-05 13:54 Static gitweb content when using pathinfo José María Escartín Esteban
2012-04-05 21:14 ` Jakub Narebski
2012-04-14 17:19   ` Jakub Narebski
2012-04-16 15:18     ` José María Escartín Esteban
2012-04-17 12:30       ` Jakub Narebski
2012-04-24  7:01         ` José María Escartín Esteban

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).