Nginx-ru mailing list archive (nginx-ru@sysoev.ru)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: fastcgi + php
Теперь так, результат тот же.
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@xxxxxxxx> написал:
> -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@xxxxxxxxx
> http://nginx.org/mailman/listinfo/nginx-ru
>
--
Best regards,
Anton Kiryushkin,
_______________________________________________
nginx-ru mailing list
nginx-ru@xxxxxxxxx
http://nginx.org/mailman/listinfo/nginx-ru
|