Nginx-ru mailing list archive (nginx-ru@sysoev.ru)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: настройка FastCGI
On Fri, Dec 18, 2009 at 04:08:12PM +0400, Peter Vereshagin wrote:
> Concrete jungle, oh nginx-ru, you've got to do your best...
> 2009/12/18 06:36:53 -0500 NT Man <nginx-forum@xxxxxxxx> => To
> nginx-ru@xxxxxxxxx :
> NM> > вынести все fastcgi_param в секцию http{}
> NM> А можно показать на примере?
>
> ===
> http {
> ...
>
> 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;
> fastcgi_param REMOTE_ADDR $remote_addr;
> fastcgi_param PATH_INFO $fastcgi_path_info;
> ...
> server { # http://alpha.vereshagin.org
> location ~ \.pl/?.*$ {
> fastcgi_split_path_info ^(.+\.pl)(.*)$;
> fastcgi_pass unix:/tmp/spawner.sock;
> }
>
> location ~ .(php|phtml)$ {
> fastcgi_pass
> unix:/tmp/php-fcgi.sock;
>
>
> ...
>
> charset windows-1251;
>
> }
>
> ...
> location ~ ^(([^\.]*\.html)|([^\.]+))$ {
> rewrite ^(.+)$ /index.pl$1;
> set $path_info $1;
> }
> ===
Мне всё больше и больше нравится питон.
--
Игорь Сысоев
http://sysoev.ru
_______________________________________________
nginx-ru mailing list
nginx-ru@xxxxxxxxx
http://nginx.org/mailman/listinfo/nginx-ru
|