Welcome! Log In Create A New Profile

Advanced

Re: How to solve the problem of "405 not allowed"?

All files from this thread

File Name File Size   Posted by Date  
patch.static_post.1 16 KB open | download Igor Sysoev 05/27/2009 Read message
Maxim Dounin
January 29, 2010 05:16PM
Hello!

On Fri, Jan 29, 2010 at 11:41:43AM -0500, kleinchris wrote:

> Can't edit my post...
> Here is a debug log, when i do it like this:
> error_page 405 =200 @405;
> location = @405 {
> root /var/www/vhosts/soulreafer;
> }

This will return internal 405 error page, as

1. you are serving request by static module again;

2. error_page to named location doesn't change request method.

Try this instead:

error_page 405 = $uri;

This way request method will be changed to GET, and the same uri
will be used to serve it.

> http://nopaste.info/5cf44ab3b1.html

This log doesn't shows any problems, and it's not even for POST
request. Instead it shows perfectly ok GET request (returning 304
not modified, as request includes If-Modified-Since).

Maxim Dounin

_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx
Subject Author Posted

How to solve the problem of "405 not allowed"?

peacock May 27, 2009 03:17AM

Re: How to solve the problem of "405 not allowed"?

Dave Cheney May 27, 2009 03:28AM

Re: How to solve the problem of "405 not allowed"?

peacock May 27, 2009 04:37AM

Re: How to solve the problem of "405 not allowed"?

Rob Schultz May 27, 2009 04:56AM

Re: How to solve the problem of "405 not allowed"? Attachments

Igor Sysoev May 27, 2009 04:46AM

Re: How to solve the problem of "405 not allowed"?

peacock May 27, 2009 12:14PM

Re: How to solve the problem of "405 not allowed"?

Cliff Wells July 24, 2009 03:15PM

Re: How to solve the problem of "405 not allowed"?

Igor Sysoev July 24, 2009 03:25PM

Re: How to solve the problem of "405 not allowed"?

Jonathan Vanasco July 24, 2009 05:00PM

Re: How to solve the problem of "405 not allowed"?

peacock May 27, 2009 05:38AM

Re: How to solve the problem of "405 not allowed"?

Igor Sysoev May 27, 2009 11:07AM

Re: How to solve the problem of "405 not allowed"?

kleinchris January 29, 2010 11:41AM

Re: How to solve the problem of "405 not allowed"?

locojohn July 06, 2011 07:29PM

Re: How to solve the problem of "405 not allowed"?

locojohn July 07, 2011 09:25AM

Re: How to solve the problem of "405 not allowed"?

peacock July 28, 2009 11:44PM

RE: How to solve the problem of "405 not allowed"?

dennisjanuary October 08, 2009 10:56PM

Re: RE: How to solve the problem of "405 not allowed"?

kleinchris January 29, 2010 11:30AM

Re: RE: How to solve the problem of "405 not allowed"?

kleinchris January 29, 2010 05:58PM

Re: How to solve the problem of "405 not allowed"?

Nick Pearson January 29, 2010 02:34PM

Re: How to solve the problem of "405 not allowed"?

Maxim Dounin January 29, 2010 05:10PM

Re: How to solve the problem of "405 not allowed"?

Maxim Dounin January 29, 2010 05:16PM

Re: How to solve the problem of "405 not allowed"?

ahu October 06, 2011 12:21PM

Re: How to solve the problem of "405 not allowed"?

ahu October 06, 2011 12:35PM

Re: How to solve the problem of "405 not allowed"?

fernandokosh January 03, 2012 11:59AM

Re: How to solve the problem of "405 not allowed"?

goldenaxez March 29, 2012 04:25PM

Re: How to solve the problem of "405 not allowed"?

helluvanag .. September 10, 2013 03:30AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 148
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready