Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 5th, 2012  |  syntax: None  |  size: 0.53 KB  |  hits: 8  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. # cgit setup for Apache that results in completely clean URLs, ie.
  2. # visiting http://git.example.org/ will produce the cgit index page
  3. <VirtualHost *>
  4.         # this part is stand fare
  5.         ServerName git.example.org
  6.         DocumentRoot /var/www/htdocs/cgit/
  7.         <Directory "/var/www/htdocs/cgit/">
  8.                 AllowOverride None
  9.                 Options ExecCGI
  10.                 Order allow,deny
  11.                 Allow from all
  12.         </Directory>
  13.         # this part is the magic
  14.         Alias /cgit.png /var/www/htdocs/cgit/cgit.png
  15.         Alias /cgit.css /var/www/htdocs/cgit/cgit.css
  16.         Alias / /var/www/htdocs/cgit/cgit.cgi/
  17. </VirtualHost>