From mboxrd@z Thu Jan 1 00:00:00 1970 From: john at keeping.me.uk (John Keeping) Date: Wed, 17 May 2017 10:37:51 +0100 Subject: CGit in subdomain In-Reply-To: <20170512165431.cs6bfdcjxlozl7lx@debian> References: <20170512154829.3ctmg3g3j2yoadzq@debian> <20170512155713.GB7429@john.keeping.me.uk> <20170512165431.cs6bfdcjxlozl7lx@debian> Message-ID: <20170517093750.GC7429@john.keeping.me.uk> On Fri, May 12, 2017 at 06:54:31PM +0200, Santi Moreno wrote: > 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 > > > domain.org/cgit but I try config with Apache2 in subdomain > > > git.domain.org 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 > > 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: > > > ServerName git.domain.org > DocumentRoot "/usr/share/cgit/" > ScriptAlias / "/usr/lib/cgit/cgit.cgi/" > Alias /cgit-css "/usr/share/cgit/" > > AllowOverride None > Options ExecCGI FollowSymlinks > Require all granted > > > > the final url is git.domain.org/css-cgit/css.git and not found it. The > url correct is domain.org/css-cgit/css.git. I need remove "git." from > the url for that found the file. Why not just copy the CSS file into /usr/lib/cgit/ ? It looks like that directory is already served, so what's the benefit of using /usr/share/cgit as the document root?