Welcome! Log In Create A New Profile

Advanced

Re: настройка FastCGI

Igor Sysoev
December 18, 2009 07:20AM
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@nginx.us> => To nginx-ru@nginx.org :
> 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@nginx.org
http://nginx.org/mailman/listinfo/nginx-ru
Subject Author Posted

настройка FastCGI

NT Man December 17, 2009 03:12PM

Re: настройка FastCGI

Nick Knutov December 17, 2009 05:26PM

Re: настройка FastCGI

NT Man December 18, 2009 04:15AM

Re: настройка FastCGI

Igor Sysoev December 18, 2009 04:30AM

Re: настройка FastCGI

NT Man December 18, 2009 05:25AM

Re: настройка FastCGI

NT Man December 18, 2009 06:36AM

Re: настройка FastCGI

Igor Sysoev December 18, 2009 05:44AM

Re: настройка FastCGI

Peter Vereshagin December 18, 2009 06:14AM

Re: настройка FastCGI

Peter Vereshagin December 18, 2009 07:10AM

Re: настройка FastCGI

Igor Sysoev December 18, 2009 07:20AM

Re: настройка FastCGI

Peter Vereshagin December 18, 2009 07:26AM

Re: настройка FastCGI

Igor Sysoev December 18, 2009 07:30AM

Re: настройка FastCGI

Peter Vereshagin December 18, 2009 07:54AM

Re: настройка FastCGI

Olexander Shtepa December 18, 2009 07:34AM

Re: настройка FastCGI

Sergey Shepelev December 18, 2009 07:40AM

Re: настройка FastCGI

Peter Vereshagin December 18, 2009 07:58AM

Re: настройка FastCGI

NT Man December 18, 2009 07:50AM

Re: настройка FastCGI

Igor Sysoev December 18, 2009 07:56AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 74
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready