CGit in subdomain

Santi Moreno santi.moreno at
Fri May 12 18:54:31 CEST 2017

On 12 may, John Keeping wrote:
> On Fri, May 12, 2017 at 05:48:29PM +0200, Santi Moreno wrote:
> > I trying to config CGit in a server and all it's fine in the link
> > but I try config with Apache2 in subdomain
> > but the cgit.css not it's apply. I don't understand why
> > the default path in cgitrc is css=/css-git/css.git when my css file is
> > in /usr/share/cgit/css.git
> > Could you help me?
> The css value in cgitrc is the URL to be included in the
> <link rel='stylesheet' .../> element in the HTML documents served by
> CGit.  You need to copy cgit.css so that your webserver will make it
> available and then set a suitable path in cgitrc.

Thanks, but the css config is default but with this config in Apache2:

<VirtualHost *:80>
    DocumentRoot "/usr/share/cgit/"
    ScriptAlias / "/usr/lib/cgit/cgit.cgi/"
    Alias /cgit-css "/usr/share/cgit/"
    <Directory "/usr/lib/cgit/">
        AllowOverride None
        Options ExecCGI FollowSymlinks
        Require all granted

the final url is and not found it. The
url correct is I need remove "git." from
the url for that found the file.


More information about the CGit mailing list