# Nginx and php fast cgi different server?

**URL:** <https://www.ruby-forum.com/t/nginx-and-php-fast-cgi-different-server/206461>\
**Category:** NGINX\
**Created:** [May 2, 2011, 5:00am UTC](https://www.ruby-forum.com/t/nginx-and-php-fast-cgi-different-server/206461 "2011-05-02T05:00:30Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![dubstep](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/cdc98d/32.png) [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Post date:** [May 2, 2011, 5:00am UTC](https://www.ruby-forum.com/t/nginx-and-php-fast-cgi-different-server/206461/1 "2011-05-02T05:00:30Z")

</div>

Hello All,

I’m a newbie on nginx, currently i have configure nginx n php fast cgi  
with same server, i want to split nginx and php fast cgi with different,  
it’s posibble?

I have test change fastcgi\_pass point di php fast cgi to other server,  
but when access site just get “No input file specified.” and no error  
report.

This my configuration.

```
    location ~ \.php$ {
            #fastcgi_pass 127.0.0.1:9000;
            fastcgi_pass 10.1.1.10:9000;
            fastcgi_index index.php;
            fastcgi_param SCRIPT_FILENAME

```

/var/www/html$fastcgi\_script\_name;  
include fastcgi\_params;  
}

My nginx nginx/0.9.6, please advice and suggestion

Thx all.

Posted at Nginx Forum:

> **[nginx and php fast cgi different server?](https://forum.nginx.org/read.php?2,194899,194899#msg-194899)**
>
> Hello All, I'm a newbie on nginx, currently i have configure nginx n php fast cgi with same server, i want to split nginx and php fast cgi with different, it's posibble? I have test change fastcgi\_pass point di php fast cgi to other server, but when...

---

<div class="post-metadata">

**Author:** ![flubber](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/b782af/32.png) [@flubber](https://www.ruby-forum.com/u/flubber)\
**Post date:** [May 2, 2011, 5:03am UTC](https://www.ruby-forum.com/t/nginx-and-php-fast-cgi-different-server/206461/2 "2011-05-02T05:03:35Z")

</div>

On Mon, May 2, 2011 at 9:59 AM, flubber [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> This my configuration.  
> My nginx nginx/0.9.6, please advice and suggestion

the fastcgi files (in this case, php files) must be located in the  
other server (10.1.1.10 in this case)

---

<div class="post-metadata">

**Author:** ![flubber](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/b782af/32.png) [@flubber](https://www.ruby-forum.com/u/flubber)\
**Post date:** [May 2, 2011, 6:26am UTC](https://www.ruby-forum.com/t/nginx-and-php-fast-cgi-different-server/206461/3 "2011-05-02T06:26:56Z")

</div>

it’s works, thanks.

Posted at Nginx Forum:

> **[Re: nginx and php fast cgi different server?](https://forum.nginx.org/read.php?2,194899,194905#msg-194905)**
>
> Hello All, I'm a newbie on nginx, currently i have configure nginx n php fast cgi with same server, i want to split nginx and php fast cgi with different, it's posibble? I have test change fastcgi\_pass point di php fast cgi to other server, but when...
