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: POST ?



 !

 include

location / {
    include main.inc
    ...
}

location /post {
    include main.inc
    ...
}

2010/7/6 Dmitry Alekhin <dmitry@xxxxxxxxx>:
>  ,
>
>   ,     POST   URI /post 
>  ,       /post  .
>   :
>
>    location / {
>      root $root;
>      index index.html index.htm ;
> ..
>    
> ..
>    }
>
>     location /post {
>      if ( $request_method = POST ) {
>      return 405;
>      }
>      root $root;
>      index index.html index.htm ;
> ..
>       /
> ..
>    }
>
>   location @post {
>        fastcgi_param SCRIPT_FILENAME /var/www/engine/post/index.php;
>        include /etc/nginx/fastcgi_params;
>    }
>
>    #
>    error_page 405 =200 @post;
>
>
>  ,       ,  
>    /      -   /  
> /post.
>   - URI  POST -  - /post, /upload, etc 
>  c  / copy&paste     
> .
>             ?
>   include  ?
>
> ,
> 
>
>
> _______________________________________________
> nginx-ru mailing list
> nginx-ru@xxxxxxxxx
> http://nginx.org/mailman/listinfo/nginx-ru
>



-- 
WBR
Igor Homyakov
System Administrator, Embria
_______________________________________________
nginx-ru mailing list
nginx-ru@xxxxxxxxx
http://nginx.org/mailman/listinfo/nginx-ru

  • References:

 




Copyright © Lexa Software, 1996-2009.