Voici ce que j'ai pu tirer de error.log de Nginx :
Code : Tout sélectionner
2013/02/04 18:21:10 [error] 613#0: *1 connect() to unix:/tmp/fcgiwrap.sock failed (111: Connection refused) while connecting to upstream, client: 192.168.1.3, server: splab.no-ip.org, request: "GET /cgit/ HTTP/1.1", upstream: "fastcgi://unix:/tmp/fcgiwrap.sock:", host: "192.168.1.2"
Code : Tout sélectionner
server {
listen 80;
server_name splab.no-ip.org;
#charset koi8-r;
#access_log logs/host.access.log main;
location / { try_files $uri @yourapplication; }
location @yourapplication {
include uwsgi_params;
uwsgi_pass unix:/tmp/uwsgi.sock;
}
location /cgit/ {
include fastcgi_params;
fastcgi_param DOCUMENT_ROOT /usr/share/nginx/html/cgit/;
fastcgi_param SCRIPT_FILENAME /usr/share/nginx/html/cgit/cgit.cgi;
fastcgi_pass unix:/tmp/fcgiwrap.sock;
gzip off;
}
Code : Tout sélectionner
[Unit]
Description=Simple server for running CGI applications over FastCGI
After=syslog.target network.target
[Service]
Type=forking
Restart=on-abort
PIDFile=/var/run/fcgiwrap.pid
ExecStart=/usr/bin/spawn-fcgi -s /tmp/fcgiwrap.sock -P /tmp/fcgiwrap.pid -u web -g web -M 700 -- /usr/sbin/fcgiwrap
ExecStop=/usr/bin/kill -15 $MAINPID
[Install]
WantedBy=multi-user.target" de de fcgi au démarrage :
Merci !