configuring 2 cgit pages on the same server

Jamie Couture jamie.couture at gmail.com
Wed Oct 19 01:45:55 CEST 2011


ugh... accidentally hit enter.... :/

<VirtualHost *:80>
  ServerName example.com
  DocumentRoot /var/www/cgit

  ServerAlias /cgit-a /var/www/cgit/cgit.cgi/
  ServerAlias /cgit-b /var/www/cgit/cgit.cgi/

   <Location /cgit-a>
       SetEnv CGIT_CONFIG "/etc/cgitrc1"
    </Location>
    <Location /cgit-b>
       SetEnv CGIT_CONFIG "/etc/cgitrc2"
     </Location>

 # ... rest of your v-host

</VirtualHost>

On Tue, Oct 18, 2011 at 7:41 PM, Jamie Couture <jamie.couture at gmail.com>wrote:

> This has more to do with how you configure your web server.  If you're
> using apache, I would do the following:
>
> <VirtualHost *:80>
>
>
> On Mon, Oct 17, 2011 at 8:52 AM, Aeschbacher, Fabrice <
> Fabrice.Aeschbacher at siemens.com> wrote:
>
>> Hi,
>>
>> How would you configure two different cgit pages on the same server (e.g.
>> http://myserver/cgit-a and http://myserver/cgit-b), to make a sub-set of
>> the git repos appear under cgit-a and the rest under cgit-b ?
>>
>> With kind regards,
>> Fabrice Aeschbacher
>>
>>
>> _______________________________________________
>> cgit mailing list
>> cgit at hjemli.net
>> http://hjemli.net/mailman/listinfo/cgit
>>
>
>



More information about the CGit mailing list