User ${APACHE_RUN_USER} Group ${APACHE_RUN_GROUP} ErrorLog ${APACHE_LOG_DIR}/error.log HostnameLookups Off # Include module configuration: IncludeOptional mods-enabled/*.load IncludeOptional mods-enabled/*.conf # Include list of ports to listen on Include ports.conf ServerName git.marks.kitchen # Set aliases for cleaner urls. Alias /cgit/cgit.css /usr/share/cgit/cgit.css Alias /cgit/cgit.png /usr/share/cgit/cgit.png Alias /favicon.ico /usr/share/cgit/favicon.ico Alias /robots.txt /usr/share/cgit/robots.txt ScriptAlias /cgit/ "/usr/lib/cgit/cgit.cgi/" #ScriptAlias / /usr/lib/cgit/cgit.cgi #DocumentRoot /usr/lib/cgit/cgit.cgi AllowOverride None Options None Require all granted AllowOverride None Options ExecCGI FollowSymlinks Require all granted RewriteEngine on RewriteRule ^$ /cgit [L]