ðòïåëôù 


  áòèé÷ 


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: Sypex Dumper 2. É nginx



localhost:~# cat /etc/nginx/sites-available/shah-online.ru                      
                           
server {                                                                        
                           
    listen 80;                                                                  
                           
    server_name shah-online.ru;                                                 
                           
    root /var/www/sites/shah-online.ru;                                         
                           
    access_log /var/log/nginx/shah-online.access.log;                           
                           
                                                                                
                           
     location / {                                                               
                           
         try_files $uri $uri/ @drupal;                                          
                           
         index index.php index.html index.htm;                                  
                           
     }
    location ~ ^/sdx/ {
        root /var/www/sites/shah-online.ru/sdx;
        index index.php;
        location ~* \.php$ {
            include         fastcgi_php_fpm;
        }
    }


      location ~ \.php$ {
        try_files $uri @drupal;
        include         fastcgi_php_fpm;
      }

    location @drupal {
        include fastcgi_php_fpm;
        fastcgi_param  SCRIPT_FILENAME      $document_root/index.php;
        fastcgi_param QUERY_STRING q=$uri&$args;
        fastcgi_param REQUEST_METHOD $request_method;
        fastcgi_param CONTENT_TYPE $content_type;
        fastcgi_param CONTENT_LENGTH $content_length;
        fastcgi_param REDIRECT_STATUS 200;
        fastcgi_param SCRIPT_NAME /index.php;
        fastcgi_param REQUEST_URI $request_uri;
        fastcgi_param DOCUMENT_URI $document_uri;
        fastcgi_param DOCUMENT_ROOT $document_root;
        fastcgi_param SERVER_PROTOCOL $server_protocol;
        fastcgi_param GATEWAY_INTERFACE CGI/1.1;
        fastcgi_param SERVER_SOFTWARE nginx/$nginx_version;
        fastcgi_param REMOTE_ADDR $remote_addr;
        fastcgi_param REMOTE_PORT $remote_port;
        fastcgi_param SERVER_ADDR $server_addr;
        fastcgi_param SERVER_PORT $server_port;
        fastcgi_param SERVER_NAME $server_name;
     }
}


Posted at Nginx Forum: http://forum.nginx.org/read.php?21,50376,50400#msg-50400


_______________________________________________
nginx-ru mailing list
nginx-ru@xxxxxxxxx
http://nginx.org/mailman/listinfo/nginx-ru


 




Copyright © Lexa Software, 1996-2009.