Re: Avoiding virtual-root with Nginx

2019-01-31 Thread Daniel Moch


> On Jan 31, 2019, at 9:30 AM, Georg Faerber  wrote:
> 
> I'm using uwsgi and Nginx, and could send
> you the configs, in case that's of interest to you.

For what it’s worth, a working config is also documented on the Arch Wiki [1]. 

[1] - https://wiki.archlinux.org/index.php/Cgit#Using_uwsgi

-- 
Daniel Moch
dan...@danielmoch.com
https://djmo.ch___
CGit mailing list
CGit@lists.zx2c4.com
https://lists.zx2c4.com/mailman/listinfo/cgit


Re: Avoiding virtual-root with Nginx

2019-01-31 Thread Georg Faerber
Hi,

On 19-01-06 02:02:45, h...@alyssa.is wrote:
> With this in mind, I've been trying and failing to set up CGit with
> Nginx without using virtual-root. By default, CGit will generate links
> starting with /cgit.cgi/, rather than just /, but I can set
> virtual-root to / to get the behaviour I want. I've found vague
> mentions online of Nginx's PATH_INFO format not being compatible with
> CGit, so my question is: is this a bug in CGit, or is there something
> I should be doing differently with Nginx?
> 
> Given that the quoted note is at least ten years old, I'm not worried
> about it suddenly disappearing, but I'd still like to be sure I'm
> doing things properly.

How do you serve the cgi code? I'm using uwsgi and Nginx, and could send
you the configs, in case that's of interest to you.

Cheers,
Georg


signature.asc
Description: Digital signature
___
CGit mailing list
CGit@lists.zx2c4.com
https://lists.zx2c4.com/mailman/listinfo/cgit


Avoiding virtual-root with Nginx

2019-01-05 Thread hi
cgitrc(5) says

> NOTE: cgit has recently learned how to use PATH_INFO to achieve the
> same kind of virtual urls, so this option will probably be deprecated.

With this in mind, I've been trying and failing to set up CGit with
Nginx without using virtual-root. By default, CGit will generate links
starting with /cgit.cgi/, rather than just /, but I can set virtual-root
to / to get the behaviour I want. I've found vague mentions online of
Nginx's PATH_INFO format not being compatible with CGit, so my question
is: is this a bug in CGit, or is there something I should be doing
differently with Nginx?

Given that the quoted note is at least ten years old, I'm not worried
about it suddenly disappearing, but I'd still like to be sure I'm doing
things properly.

Alyssa Ross
h...@alyssa.is


signature.asc
Description: PGP signature
___
CGit mailing list
CGit@lists.zx2c4.com
https://lists.zx2c4.com/mailman/listinfo/cgit