Cgit Apache2 clean url configuration

Jerry Jacobs jerkejacobs at gmail.com
Mon Jul 18 11:59:16 CEST 2011


Dear All,

It is very pleasant for documentation purposes to have clean urls, I 
found on the web a apache2 configuration which should be added to the 
cgit distribution for people who run apache and just copy-paste the 
configuration:

# cgit setup for Apache that results in completely clean URLs, ie.
# visiting http://git.example.org/ will produce the cgit index page
<VirtualHost *>
	# this part is stand fare
	ServerName git.example.org
	DocumentRoot /var/www/htdocs/cgit/
	<Directory "/var/www/htdocs/cgit/">
		AllowOverride None
		Options ExecCGI
		Order allow,deny
		Allow from all
	</Directory>
	# this part is the magic
	Alias /cgit.png /var/www/htdocs/cgit/cgit.png
	Alias /cgit.css /var/www/htdocs/cgit/cgit.css
	Alias / /var/www/htdocs/cgit/cgit.cgi/
</VirtualHost>


Kind regards,
Jerry Jacobs
- http://xor-gate.org





More information about the CGit mailing list