7 messages in ru.sysoev.nginxRe: ForceType directive in nginx fast...
FromSent OnAttachments
PaulFeb 22, 2007 8:22 am 
Igor SysoevFeb 22, 2007 9:37 am 
PaulFeb 22, 2007 9:56 am 
Igor SysoevFeb 22, 2007 10:03 am 
PaulFeb 22, 2007 10:09 am 
Igor SysoevFeb 22, 2007 10:19 am 
PaulFeb 22, 2007 10:35 am 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:Re: ForceType directive in nginx fastcgi?Actions...
From:Igor Sysoev (is-G@public.gmane.org)
Date:Feb 22, 2007 10:19:47 am
List:ru.sysoev.nginx

On Thu, Feb 22, 2007 at 06:09:47PM +0000, Paul wrote:

What PHP script should handle /search/nginx URL ?

/search.php

It uses PATH_INFO or REQUEST_URI

The REQUEST_URI is set in fastcgi_params:

fastcgi_param REQUEST_URI $request_uri;

So you need something like:

location /search { fastcgi_pass 127.0.0.1:9000; fastcgi_param SCRIPT_FILENAME /root/path/search.php; include fastcgi_params; }

Setting PATH_INFO is more complicated. So you need something like:

location /search { set $path_info "";

if ($uri ~ "^/search(.+)") { set $path_info $1; }

fastcgi_pass 127.0.0.1:9000; fastcgi_param SCRIPT_FILENAME /root/path/search.php; fastcgi_param PATH_INFO $path_info; include fastcgi_params; }