Omnibus-gitlab nginx fastcgi problem

Hi, I has a omnibus-gitlab nginx fastcgi problem.

My config:

 nginx['custom_nginx_config'] = "include /etc/nginx/conf.d/*.conf;"

My file: /etc/nginx/conf.d/cgit.conf

server {
    listen 80;
    root /var/www/htdocs/cgit;

    location / {
        try_files $uri @cgit;

    location @cgit {
        index cgit.cgi;
        fastcgi_param SCRIPT_FILENAME $document_root/cgit.cgi;
        fastcgi_pass unix:/var/run/fcgiwrap.socket;
        fastcgi_param HTTP_HOST $server_name;
        fastcgi_param PATH_INFO $uri;
        fastcgi_param QUERY_INFO $uri;
        include "fastcgi_params";


then restart

sudo gitlab-ctl restart

ok: run: ci-redis: (pid 10128) 0s
ok: run: ci-sidekiq: (pid 10138) 0s
ok: run: ci-unicorn: (pid 10149) 0s
ok: run: logrotate: (pid 10157) 0s
timeout: down: nginx: 0s, normally up, want up
ok: run: postgresql: (pid 10229) 0s
ok: run: redis: (pid 10232) 1s
ok: run: sidekiq: (pid 10249) 0s
ok: run: unicorn: (pid 10257) 0s

the error log: /var/log/gitlab/nginx/error.log

2015/05/20 22:04:12 [emerg] 5881#0: open() "/var/opt/gitlab/nginx/conf/fastcgi_params" failed (2: No such file or directory) in /etc/nginx/conf.d/cgit.conf

what happy?
How can i fix this problem?


In your /etc/nginx/conf.d/cgit.conf you have include "fastcgi_params";, so nginx expects a file named fastcgi_params to be present in a location, probably /etc/nginx/conf.d/ if I am correct.