Apache-Talk @lexa.ru 

Inet-Admins @info.east.ru 

Filmscanners @halftone.co.uk 

Security-alerts @yandex-team.ru 

nginx-ru @sysoev.ru 


   


   


   















      :: nginx-ru
Nginx-ru mailing list archive (nginx-ru@sysoev.ru)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: nginx vs. OpenX



  ,     www?  htdocs -    ?

        location / {
            fastcgi_pass   127.0.0.1:9000;
            fastcgi_index  index.php;
            fastcgi_param  SCRIPT_FILENAME
/path/to/openx/www$fastcgi_script_name;
            include        fastcgi_params;
        }

2009/5/22   <scrill@xxxxxxxxxxxx>:
>   ,   -  - :(
>
> Pavel Khusainov <alvelcom@xxxxxxxxxx> ()  ϣ  Thu, 21 May
> 2009 19:31:29 +0300:
>
>>
>> location /   ?
>>
>> *   <scrill@xxxxxxxxxxxx> [Thu, 21 May 2009 16:45:23 +0300]:
>>>
>>>  .
>>>  nginx(0.7.55), OpenX  php-cgi.   ӣ 
>>
>> ,
>>>
>>>   ...
>>>
>>>  ,  , http://openx.example.org nginx  302 
>>> 
>>> Location: openx.example.org/www/admin/index.php
>>>     ģ 
>>> http://openx.example.org/openx.example.org/www/admin/index.php
>>>
>>>  nginx :
>>>
>>> server {
>>>     listen     80;
>>>     server_name   openx.example.org;
>>
>> location / {
>>>
>>>     root  /var/www/openx.example.org/htdocs;
>>> #    rewrite ^/openx.example.org/(.*)$ /$1? last;
>>
>> }
>>>
>>>     location ~ .php$ {
>>>         fastcgi_pass  127.0.0.1:9000;
>>>         fastcgi_index index.php;
>>>         fastcgi_param SCRIPT_FILENAME
>>> /var/www/openx.example.org/htdocs$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 SCRIPT_NAME   $fastcgi_script_name;
>>>         fastcgi_param SERVER_NAME   $host;
>>>     }
>>> }
>>>
>>>   rewrite',    ,   ӣ  
>>> .
>>>
>>>  .
>>>
>>
>> --
>> Pavel Khusainov.
>>
>
>
>
> --
>      Opera: http://www.opera.com/mail/
>
>


 




Copyright © Lexa Software, 1996-2009.