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

instaweb does not start because of a small syntax error in .git/gitweb/httpd.conf

From
BSBodo Schlecht <schlecht@superdigi.de>
Date
Jul 18, 2009, 15:08 UTC
Message-ID
<4A61E563.7000401@superdigi.de>
When I start instaweb with
  git instaweb
I get this error:
  Syntax error on line 8 of /media/disk1part4/Eigene Dateien/superdigi/superdigientwicklung/.git/gitweb/httpd.conf:
  TypesConfig takes one argument, the MIME types config file
  Could not execute http daemon apache2 -f.
Line 8 of /.git/gitweb/httpd.conf reads
  TypesConfig /media/disk1part4/Eigene Dateien/superdigi/superdigientwicklung/.git/mime.types
As you see, there is a space in the path so it should be quotes:
  TypesConfig "/media/disk1part4/Eigene Dateien/superdigi/superdigientwicklung/.git/mime.types"
In all other lines of http.conf the path is correctly in quotes:
  ServerName "git-instaweb"
  ServerRoot "/media/disk1part4/Eigene Dateien/superdigi/superdigientwicklung/.git/gitweb"
  DocumentRoot "/media/disk1part4/Eigene Dateien/superdigi/superdigientwicklung/.git/gitweb"
  PidFile "/media/disk1part4/Eigene Dateien/superdigi/superdigientwicklung/.git/pid"
  Listen 127.0.0.1:4321
  LoadModule mime_module  /usr/lib/apache2/modules/mod_mime.so
  LoadModule dir_module  /usr/lib/apache2/modules/mod_dir.so
  TypesConfig /media/disk1part4/Eigene Dateien/superdigi/superdigientwicklung/.git/mime.types
  DirectoryIndex gitweb.cgi
  LoadModule cgi_module /usr/lib/apache2/modules/mod_cgi.so
  AddHandler cgi-script .cgi
  <Location /gitweb.cgi>
    Options +ExecCGI
  </Location>
Next: Sean Estabrooks
Message 1 of 3 in “instaweb does not start because of a small syntax error in .git/gitweb/httpd.conf”
  1. Bodo SchlechtJul 18, 2009
  2. Trivial path quoting fixes in git-instawebSean Estabrooks, Jul 18, 2009
  3. Eric WongJul 26, 2009

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.