А РХИВ :: nginx-ru
Nginx-ru mailing list archive (nginx-ru@sysoev.ru)
[Date Prev ][Date Next ][Thread Prev ][Thread Next ][Date Index ][Thread Index ]
Re: HTTP/1.x 405 Method Not Allowed
To : nginx-ru@xxxxxxxxx
Subject : Re: HTTP/1.x 405 Method Not Allowed
From : "Name Last name" <deepmindster@xxxxxxxxx >
Date: Thu, 10 Apr 2008 18:10:51 +0400
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; bh=Rqx7Q3Boo0OVhKCoinaDWV8Em7hvA45pCZN8GX6mfn8=; b=r4mt8mQdfi/hvIY3tfb5a3jY8dI81qEJ5Am38jqWP2uPzy5E18v4bpDxOPR7zwQCt7M3Ic50prVvWNbqo0X6foi0hJHBsRaz3nlr/+kXY/lYAZJj0ipzJbkRy+5cRjWQFGFxs+/EqX+ssoTwDh7pSzUsXFE/zWfbYel5BCvRL2g=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=K7ICsP2vZnWmsfd8ka0D2CXhf3BU7C4IWM+BzyN4xMPxqHc8MAAjApp89JFqvflVMTT1q3d9UrEe+sgMcFjq1d9KKaZRVba2fEzLb1JiGYvvoatgsf2U6tci6FO7/OheLHZWbYMmRO2286HTfGLiDew91ntoETfFDjYOwCM1R/U=
In-reply-to: <47FDCE82.4040002@xxxxxxx >
References: <4a4b51fd0804092359x7ddd0ff5hc4a6ce54f562c363@xxxxxxxxxxxxxx > <47FDCE82.4040002@xxxxxxx >
Здравствуйте все, спасибо всем за ответы. Дмитрий, Вы правы. Как и Максим. У меня в конфиге примерно так, как вы предполагаете Только до конца не ясно, что с этим делать, то есть что имеется ввиду под прописать явно?
Добавления фрагментов ниже в конфиг не дал эффекта, то есть метод всё ещё Not Allowed. Максим, отдельное спасибо за ключевые слова, просматриваю рассылку с помощью гугла. Но пока, к сожалению, результата нет. location = /new_site/content/public_html/user/save-bling {
fastcgi_pass 127.0.0.1:1026 ;
fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME /srv/www/vhosts/mysite.com/new_site/content/public_html/index.php?part=User&subPart=Main&page=SaveBling ;
include etc/nginx/fastcgi_params; } Конфиг ниже $ cat etc/nginx/fastcgi_params: fastcgi_param QUERY_STRING $query_string; fastcgi_param REQUEST_METHOD $request_method;
fastcgi_param CONTENT_TYPE $content_type; fastcgi_param CONTENT_LENGTH $content_length; $ cat mysite.com.conf server { listen 111.11.111.111:80 ;
server_name mysite.com www.mysite.com ;
root /srv/www/vhosts/mysite.com ; index index.php index.html;
access_log /var/log/nginx/mysite.com.access.log main; error_page 404 403 500 501 502 503 504 /404.php; location = /new_site/ { fastcgi_pass 127.0.0.1:1026 ;
fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME /srv/www/vhosts/mysite.com$fastcgi_script_name; include etc/nginx/fastcgi_params; } location ^~ /new_site/.+\.(png|jpg|jpeg|gif|htc|ico|css|js)$ {
root /srv/www/vhosts/mysite.com ; expires 3h; } location ~ /new_site/[^.]+\.php$ {
fastcgi_pass 127.0.0.1:1026 ;
fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME /srv/www/vhosts/mysite.com$fastcgi_script_name; include etc/nginx/fastcgi_params; } location ~ /new_site/.+$ {
rewrite ^/new_site/content/public_html/flashconfig$ /new_site/content/public_html/index.php?part=Flash&subPart=Main&page=Config last; # rewrite ^/new_site/content/public_html/user/save-bling$ /new_site/content/public_html/index.php?part=User&subPart=Main&page=SaveBling last;
} location ~ \.php$ { proxy_pass http://127.0.0.1:80 ; proxy_redirect off;
proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; client_max_body_size 10m; client_body_buffer_size 128k; proxy_connect_timeout 90;
proxy_send_timeout 90; proxy_read_timeout 3000; proxy_buffer_size 4k; proxy_buffers 4 32k; proxy_busy_buffers_size 64k;
proxy_temp_file_write_size 64k; } location ^~ \.(png|jpg|jpeg|gif|htc|ico|css|js)$ { expires 1y; } location ~ /\.ht { deny all;
} location ~ config\.xml$ { deny all; } }