fastcgi + php
Anton Kiryushkin
swood на fotofor.biz
Чт Июн 3 18:06:49 MSD 2010
Теперь так, результат тот же.
location ~ ^/upper/.+\.php$ {
fastcgi_pass 127.0.0.1:8888;
include fastcgi_params;
fastcgi_param DOCUMENT_ROOT /path/to/upper;
fastcgi_param SCRIPT_FILENAME /path/to$fastcgi_script_name;
fastcgi_param QUERY_STRING $query_string;
fastcgi_param REQUEST_METHOD $request_method;
fastcgi_param CONTENT_TYPE $content_type;
fastcgi_param CONTENT_LENGTH $content_length;
}
location ~ ^/.+\.php$ {
fastcgi_pass 127.0.0.1:8888;
fastcgi_index index.php;
include fastcgi_params;
fastcgi_param DOCUMENT_ROOT /path/to/scripts;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param QUERY_STRING $query_string;
fastcgi_param REQUEST_METHOD $request_method;
fastcgi_param CONTENT_TYPE $content_type;
fastcgi_param CONTENT_LENGTH $content_length;
}
3 июня 2010 г. 17:44 пользователь hg_04 <nginx-forum at nginx.us> написал:
> -fastcgi_param SCRIPT_FILENAME /path/to/upper$fastcgi_script_name;
> +fastcgi_param SCRIPT_FILENAME /path/to$fastcgi_script_name;
>
> Posted at Nginx Forum: http://forum.nginx.org/read.php?21,94033,94068#msg-94068
>
>
> _______________________________________________
> nginx-ru mailing list
> nginx-ru at nginx.org
> http://nginx.org/mailman/listinfo/nginx-ru
>
--
Best regards,
Anton Kiryushkin,
Подробная информация о списке рассылки nginx-ru