Results 1 to 2 of 2

Thread: NGINX setup "fastcgi_pass" directive is duplicate

  1. #1
    Join Date
    Mar 2007
    Location
    S.West Greater London, UK
    Beans
    Hidden!
    Distro
    Ubuntu

    Question NGINX setup "fastcgi_pass" directive is duplicate

    I am trying to get an NGINX setup working on Ubuntu Server within virtualhost to get a bit of learning going on, but have come across an initial stumbling block.

    I have the various packages installed and ready, but notice that when I restart/start NGINX I get the error message returned:
    Code:
    $ sudo /etc/init.d/nginx restart
    Restarting nginx: nginx: [emerg] "fastcgi_pass" directive is duplicate in /etc/nginx/sites-enabled/default:69
    nginx: configuration file /etc/nginx/nginx.conf test failed
    Does anyone have an idea what the duplicate directive error is? I looked in my nginx.conf file, and the term cgi is not there at all, so wonder what could be causing this.

    Thanks for any pointers,
    Dan
    Dan Duke
    www.retrobadger.net
    Freelance Web/Drupal Designer & Developer.

  2. #2
    Join Date
    Mar 2007
    Location
    S.West Greater London, UK
    Beans
    Hidden!
    Distro
    Ubuntu

    Talking Re: NGINX setup "fastcgi_pass" directive is duplicate

    Eventually found the solution. I was calling that function twice as incommented both lines when enabling php5-fpm. So just went in and commented out the php5-cgi line.
    Dan Duke
    www.retrobadger.net
    Freelance Web/Drupal Designer & Developer.

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •