POST на /?

Alex Vorona voron at amhost.net
Mon Jan 7 23:33:51 MSK 2008


Igor Sysoev пишет:
> On Mon, Jan 07, 2008 at 07:02:01PM +0200, Alex Vorona wrote:
>
>   
>> Почему nginx считает что пост в /? это пост в статику, хотя в индексе 
>> только index.php и индекс нормально подтягивается при GET
>>
>> GET /install/?step=2 HTTP/1.0 "200" 2252
>> POST /install/?step=2 HTTP/1.0 "405"
>> GET /install/index.php?step=2 HTTP/1.0 "200" 2252
>> POST /install/index.php?step=2 HTTP/1.0 "200" 658
>>
>> php через fastcgi, заворачивается только  ~ \.(php)$
>>     
>
> У меня не воспроизводится. Скорее всего, дело в том, что расположение
> статики и скриптов не совпадают (что правильно) и nginx не находит
> /install/index.php и не делает внутренний редирект.
>   
по GET находит, а по POST не находит? :)

nginx version: nginx/0.6.24
configure arguments: --prefix=/usr/local/etc/nginx --with-cc-opt=-I 
/usr/local/include --with-ld-opt=-L /usr/local/lib 
--conf-path=/usr/local/etc/nginx/nginx.conf 
--sbin-path=/usr/local/sbin/nginx --pid-path=/var/run/nginx.pid 
--error-log-path=/var/log/nginx-error.log --user=www --group=www 
--with-debug 
--http-client-body-temp-path=/var/tmp/nginx/client_body_temp 
--http-proxy-temp-path=/var/tmp/nginx/proxy_temp 
--http-fastcgi-temp-path=/var/tmp/nginx/fastcgi_temp 
--http-log-path=/var/log/nginx-access.log --with-http_gzip_static_module 
--with-http_stub_status_module

> Нужно использовать такую конфигурацию:
>
>     location  ~ (/|\.php)$ {
>         fastcgi_index   index.php;
>         fastgci_pass    ...
>         ...
>     }
>
>
>   
спасибо, так работает





More information about the nginx-ru mailing list