Welcome! Log In Create A New Profile

Advanced

Re: Do nginx do not auto differentiate the file name and directory name in the url?

Vicente Aguilar
March 01, 2010 01:56AM
Hi

> 192.168.1.19 - - [01/Mar/2010:10:42:33 +0800] "GET /myweb HTTP/1.1" 301 178 "-" "Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trid
> ent/4.0; .NET CLR 2.0.50727; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022)"

nginx seems to be issuing the 301 HTTP redirect redirect, notice the 301 after the GET.

What's your URL after you go to http://domain/myweb and get the error? According to that log you've received a redirect and it should have changed to http://domain/myweb/. Does it show domain or localhost? You're using localhost as the server_name, I'm not sure if maybe nginx is using that domain to issue the Location on the redirect. If you're testing this from a different machine than your server it will sure fail.

Please try with the LiveHTTPHeaders Firefox plugin and tell us what Location: are you being redirected to on the HTTP 301.

Regards

--
Vicente Aguilar <bisente@bisente.com> | http://www.bisente.com


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

Do nginx do not auto differentiate the file name and directory name in the url?

ultrawind February 27, 2010 04:32AM

Re: Do nginx do not auto differentiate the file name and directory name in the url?

edogawaconan February 27, 2010 05:50AM

Re: Do nginx do not auto differentiate the file name and directory name in the url?

Vicente Aguilar February 28, 2010 02:42AM

Re: Do nginx do not auto differentiate the file name and directory name in the url?

ultrawind February 28, 2010 09:52PM

Re: Do nginx do not auto differentiate the file name and directory name in the url?

Vicente Aguilar March 01, 2010 01:56AM

Re: Do nginx do not auto differentiate the file name and directory name in the url?

ultrawind March 01, 2010 09:29PM

Re: Do nginx do not auto differentiate the file name and directory name in the url?

Igor Sysoev March 02, 2010 10:02AM

Re: Do nginx do not auto differentiate the file name and directory name in the url?

ultrawind March 04, 2010 03:03AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 94
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready