3 ms·
If you do not want to mange a full featured web server, you can also replace nginx with haproxy. global master-worker program fcgiwrap command /usr/sbin
by tgragnato 6y ago
If you do not want to mange a full featured web server, you can also replace nginx with haproxy.
global
master-worker
program fcgiwrap
command /usr/sbin/fcgiwrap -c <preforks> -f -s tcp:127.0.0.1:8080
user www-data
group www-data
frontend
...
backend cgit
use-fcgi-app cgit
server fcgiwrap 127.0.0.1:8080 proto fcgi check
fcgi-app cgit
log-stderr global
option keep-conn
docroot <path>
set-param SCRIPT_FILENAME /usr/lib/cgit/cgit.cgi
set-param PATH_INFO %[path]
set-param QUERY_STRING %[query]
set-param HTTP_HOST %[hdr(host)]
- jrwr 6y agoHow is HAProxy any easier then nginx when it comes to proxying fcgi work?
- tgragnato 6y agoI'd say that they have a different set of features: use the software that suits best your needs. A default installation of NginX in Ubuntu does many things, which you need to administer and maintain. Haproxy is simpler because it's not a webserver and does fewer things.