Skip to content

Instantly share code, notes, and snippets.

Forked from ap/httpd-cgit.conf
Created April 14, 2019 16:00
What would you like to do?
cgit clean URLs Apache config
# cgit setup for Apache that results in completely clean URLs, ie.
# visiting will produce the cgit index page
<VirtualHost *>
# this part is stand fare
DocumentRoot /var/www/htdocs/cgit/
<Directory "/var/www/htdocs/cgit/">
AllowOverride None
Options ExecCGI
Order allow,deny
Allow from all
# 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/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment