Re: 405 Not Allowed × Php ÓËÒÉÐÔÅ.Post ÚÁÐÒÏÓ

Sergey Averyanov averyanov ÎÁ gmail.com
þÔ éÀÌ 22 12:09:03 MSD 2010


nginx ×ÏÚ×ÒÁÝÁÅÔ 405 ÐÒÉ ÐÏÐÙÔËÅ post ÚÁÐÒÏÓÁ × ÓÔÁÔÉËÕ

2010/7/21 No1 <nginx-forum at nginx.us>:
> óËÒÉÐÔ ÄÉÎÁÍÉÞÅÓËÉÊ,×ÓÅ ÞÔÏ ÅÓÔØ Ó
> ÄÁÎÎÏÊ ÏÛÉÂËÏÊ ÎÁ ÆÏÒÕÍÅ Ó×ÑÚÁÎÏ ÓÏ
> ÓÔÁÔÉËÏÊ.
> ðÒÁ×Á ÎÁ ×ÓÅ 755.
> ÷ ÌÏÇÁÈ "Post basket/?st=1" ÐÏÌÕÞÁÅÔ 405.
> [code]
> upstream šbackend š{
> š š š šserver š 127.0.0.1:3000 š šweight=5;
> š š š šserver š 127.0.0.1:3001 š šmax_fails=3 šfail_timeout=30s;
>
> š š š š}
>
> š šserver {
> š š š šlisten š š š 80;
> š š š šserver_name šwww.site;
>
> š š š šaccess_log š/var/log/nginx/site.access.log šmain;
>
> š š š šlocation / {
> š š š š š šroot š /var/www/site/;
> š š š š š šindex šindex.php;
> š š š š}
>
> š š š šerror_page š 500 502 503 504 š/50x.html;
> š š š šlocation = /50x.html {
> š š š š š šroot š /var/www/nginx-dist;
> š š š š}
>
> š š š šlocation ~ \.php$ {
> š š š š š šfastcgi_pass š backend;
> š š š š š šfastcgi_index šindex.php;
> š š š š š šfastcgi_param šSCRIPT_FILENAME
> /var/www/site$fastcgi_script_name;
> š š š š š šinclude š š š šfastcgi_params;
> š š š š š šfastcgi_param šREQUEST_METHOD š $request_method;
> š š š š š šfastcgi_param šCONTENT_TYPE š š $content_type;
> š š š š š šfastcgi_param šCONTENT_LENGTH š $content_length;
> [/code]
>
> Posted at Nginx Forum: http://forum.nginx.org/read.php?21,111241,111241#msg-111241
>
>
> _______________________________________________
> nginx-ru mailing list
> nginx-ru at nginx.org
> http://nginx.org/mailman/listinfo/nginx-ru
>



-- 
ó Õ×ÁÖÅÎÉÅÍ,
š óÅÒÇÅÊ á×ÅÒØÑÎÏ×,
š ôÅÌ.: +79272702841
š GTalk: averyanov at gmail.com


ðÏÄÒÏÂÎÁÑ ÉÎÆÏÒÍÁÃÉÑ Ï ÓÐÉÓËÅ ÒÁÓÓÙÌËÉ nginx-ru