OK, I think I found the solution for this issue; The doc_root parameter in the PHP.INI must be set with the same value of the root parameter in the nginx.conf Like this, php pages are found and run. However, I still have a problem because I would like to use 3 differents servers (domains), using the same phpfcgi. And each of the 3 servers has different root folders, therefore I have only onby eki33 - How to...
I think it's inside, cause I use an include instruction I noticed that php is working fine for any other php scripts on this server It's just the first index.php page that I can't define as default. Thanksby eki33 - How to...
Hi all, I'm trying to configure NGINX to define index.php as default home page. The code here below doesn't work (the browser displays "no input file specified" with this config) but works well with a static index.html. however, a call to a php page from a static index.html home page works fine. nginx.conf code: location / { root mnt/opt/www/mvc/; index index.pby eki33 - How to...
Hello, I installed the web server (nginx 0.7.67) to handle static (html) and dynamic (php) pages. PHP pages are handled with spawn-fcgi (v1.6.3), which uses php-cgi 5.3.1 as engine. The web server listen on port 85 and the spawn-fcgi handle PHP requests through port 9000. I configured nginx as this : server { listen 85; server_name 10.0.0.1; access_loby eki33 - How to...
Hello all, I have a robot that sends GET or POST requests, this robot can't specify it's client host header... I see that Nginx handle the GET as a BAD REQUEST (400) : access log: 10.0.0.4 - - [01/Jul/2011:01:04:22 +0000] "GET /index.html HTTP/1.0" 400 173 "-" "-" erro log: 2011/07/01 01:04:22 1206#0: *41 client sent invalid host header while reading clieby eki33 - How to...