Welcome! Log In Create A New Profile

Advanced

Question about 405 not allowed error with "default nginx.conf" configuration

Posted by yjoo 
Question about 405 not allowed error with "default nginx.conf" configuration
September 12, 2012 04:55PM
Hello,

I'm a new user in this forum and recently, our project chose "nginx" for some specific web-based service. We are on initial stage for the project and we encountered very weird issue in Nginx-1.2.3

1) Problem details

- No modifications in nginx.conf file. Everything is default config except service port and running user
- Nginx launched properly without having any error.
- Whenever I access to the web-server by using firefox, IE, I receive "405 Not allowed" error page.
- I tried pure HTTP GET method. I just typed "http://<server-ip-address>" url in location bar of the browsers.
- In error.log file, I was able to get some error messages after enabling debug log. Here are error log details
> 2012/09/12 01:43:29 [debug] 9057#0: *1 http request line: "GET / HTTP/1.0"
> 2012/09/12 01:43:29 [debug] 9057#0: *1 http uri: "/"
> 2012/09/12 01:43:29 [debug] 9057#0: *1 http args: ""
> 2012/09/12 01:43:29 [debug] 9057#0: *1 http exten: ""
> 2012/09/12 01:43:29 [debug] 9057#0: *1 http process request header line
> 2012/09/12 01:43:29 [debug] 9057#0: *1 http header: "Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/x-ms-
application, application/x-ms-xbap, application/vnd.ms-xpsdocument, application/xaml+xml, */*"
> 2012/09/12 01:43:29 [debug] 9057#0: *1 http header: "Accept-Language: en-us"
> 2012/09/12 01:43:29 [debug] 9057#0: *1 http header: "UA-CPU: x86"
> 2012/09/12 01:43:29 [debug] 9057#0: *1 http header: "User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.2; SV1; .NET CLR
1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)"
> 2012/09/12 01:43:29 [debug] 9057#0: *1 http header: "Host: 172.16.1.3:61013"
> 2012/09/12 01:43:29 [debug] 9057#0: *1 http header: "Connection: Keep-Alive"
> 2012/09/12 01:43:29 [debug] 9057#0: *1 http header done
> 2012/09/12 01:43:29 [debug] 9057#0: *1 event timer del: 3: 1347414269721
> 2012/09/12 01:43:29 [debug] 9057#0: *1 test location: "/"
> 2012/09/12 01:43:29 [debug] 9057#0: *1 using configuration "/"
> 2012/09/12 01:43:29 [debug] 9057#0: *1 http cl:-1 max:1048576
> 2012/09/12 01:43:29 [debug] 9057#0: *1 generic phase: 1
> 2012/09/12 01:43:29 [debug] 9057#0: *1 generic phase: 2
> 2012/09/12 01:43:29 [debug] 9057#0: *1 access phase: 3
> 2012/09/12 01:43:29 [debug] 9057#0: *1 access phase: 4
> 2012/09/12 01:43:29 [debug] 9057#0: *1 post access phase: 5
> 2012/09/12 01:43:29 [debug] 9057#0: *1 content phase: 6
> 2012/09/12 01:43:29 [debug] 9057#0: *1 content phase: 7
> 2012/09/12 01:43:29 [debug] 9057#0: *1 content phase: 8
> 2012/09/12 01:43:29 [debug] 9057#0: *1 http finalize request: 405, "/?" a:1, c:1
> 2012/09/12 01:43:29 [debug] 9057#0: *1 http special response: 405, "/?"
> 2012/09/12 01:43:29 [debug] 9057#0: *1 http set discard body
> 2012/09/12 01:43:29 [debug] 9057#0: *1 HTTP/1.1 405 Not Allowed

2) Platform + Build

- I ran nginx on the MIPs platfrom and the platform is running "debian-based" customized Linux
- I did a cross-compile nginx with special toolkit
- The linux (which nginx is running on) is running in single-user mode and I gave "root privilege" on nginx
- I compiled it wihtouth have "http_rewirte", "proxy", "ssl" and "gzip-support" modules.

Do you have any idea in this problem? I encountered many issues which are addressing 405 not allowed when static POST method comes but never saw the same issue like mime. Is it configuration issue? or the build is wrong?

Any advices will be welcomed!!! Thanks in advance.
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 124
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