You are not logged in.
Hi,
I'm trying to get cgit running behind Nginx using fcgiwrap:
server {
listen 443;
server_name code.diederickdevries.net;
root /usr/share/webapps/cgit;
location ~* ^.+\.(css|png|ico)$ {
expires 30d;
}
location @cgit {
index cgit.cgi;
include fastcgi_params;
fastcgi_param DOCUMENT_ROOT $document_root;
fastcgi_param SCRIPT_FILENAME $document_root/cgit.cgi;
fastcgi_param PATH_INFO $uri;
fastcgi_param QUERY_INFO $uri;
fastcgi_param HTTP_HOST $server_name;
fastcgi_pass unix:/run/fcgiwrap.sock;
}
access_log /var/log/nginx/code.access.log main;
error_log /var/log/nginx/code.error.log warn;
include ssl.conf;
}
I have started fcgiwrap.sock as instructed on https://wiki.archlinux.org/index.php/Cg … g_fcgiwrap but when I request the subdomain, the browser returns a 403 Forbidden and the error log shows
2018/06/05 20:30:10 [error] 25525#25525: *1 directory index of "/usr/share/webapps/cgit/" is forbidden, client: 83.162.2.169, server: code.diederickdevries.net, request: "GET / HTTP/2.0", host: "code.diederickdevries.net"
I could chown /usr/share/webapps/cgit, but then ownership of the files would differ from the package. Is there a better way to give fcgiwrap access to the script?
Thanks for any help!
Offline
Wiki example for nginx has some different lines, but also a different structure.
You don't have "try_lines" , also the "location @cgit" block is part of the server block in the wiki example.
Note : i know very little about nginx.
Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.
clean chroot building not flexible enough ?
Try clean chroot manager by graysky
Online
Thanks for the reply. The wiki example has a lot of problems and won't let Nginx start. I tried the other example using uwsgi and that works without problem.
Offline
If you still feel like trying to get fciwrap to work, debian ships it with configuration examples.
https://packages.debian.org/sid/amd64/fcgiwrap/download
Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.
clean chroot building not flexible enough ?
Try clean chroot manager by graysky
Online
Thanks! I'll try it out.
Offline