Re: redirect 301 alias domain

2014-03-05 Thread Francis Daly
On Wed, Mar 05, 2014 at 03:18:31AM -0500, zuckbin wrote: > i don't understand why you said that is not the good conf file is used ? > > how do you know this ? You request http://www.aaa.com/. You get a redirect to http://www.aaa.com/. Which part of the configuration you showed does a redirect to

Re: redirect 301 alias domain

2014-03-05 Thread zuckbin
i don't understand why you said that is not the good conf file is used ? how do you know this ? Posted at Nginx Forum: http://forum.nginx.org/read.php?2,248038,248123#msg-248123 ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/l

Re: redirect 301 alias domain

2014-03-04 Thread Francis Daly
On Tue, Mar 04, 2014 at 08:27:39AM -0500, zuckbin wrote: Hi there, this... > curl -i "http://www.aaa.com/"; > Location: http://www.aaa.com/ says that the config that you think nginx is using is not the config that nginx is using. You have a few other recent mails which probably have the same

Re: redirect 301 alias domain

2014-03-04 Thread zuckbin
i forgot to say that i used pound on my server before to send traffic to nginx Maybe, there is a conflict with it Posted at Nginx Forum: http://forum.nginx.org/read.php?2,248038,248071#msg-248071 ___ nginx mailing list nginx@nginx.org http://mailman.n

Re: redirect 301 alias domain

2014-03-04 Thread zuckbin
curl -i "http://www.aaa.com/"; HTTP/1.1 301 Moved Permanently Server: nginx Date: Tue, 04 Mar 2014 13:25:24 GMT Content-Type: text/html Content-Length: 178 Connection: keep-alive Keep-Alive: timeout=5 Location: http://www.aaa.com/ 301 Moved Permanently 301 Moved Permanently nginx Posted at Ng

Re: redirect 301 alias domain

2014-03-04 Thread Francis Daly
On Tue, Mar 04, 2014 at 06:10:31AM -0500, zuckbin wrote: Hi there, > in firebug i can see this many times: > > GET www.aaa.com 301 Moved Permanently aaa.com > > it seem this is not redirect well This seems to say the when you ask for http://www.aaa.com/, you are redirected to http://aaa.com/.

Re: redirect 301 alias domain

2014-03-04 Thread zuckbin
i got this error The page isn't redirecting properly in firebug i can see this many times: GET www.aaa.com 301 Moved Permanently aaa.com it seem this is not redirect well Posted at Nginx Forum: http://forum.nginx.org/read.php?2,248038,248068#msg-248068 ___

Re: redirect 301 alias domain

2014-03-03 Thread Maxim Dounin
Hello! On Mon, Mar 03, 2014 at 10:43:01AM -0500, zuckbin wrote: > hi, > > i want to do a 301 redirect on all my alias domain for a domain > > but i stuck in an infinite loop! > > server{ > listen 80; > server_name www.aaa.com www.aa.com ... > return 301 http://www.bbb.com$request_u

Re: redirect 301 alias domain

2014-03-03 Thread Francis Daly
On Mon, Mar 03, 2014 at 10:43:01AM -0500, zuckbin wrote: Hi there, > i want to do a 301 redirect on all my alias domain for a domain > > but i stuck in an infinite loop! What's the problem? What request do you make; what response do you get; what response do you want? f -- Francis Da

redirect 301 alias domain

2014-03-03 Thread zuckbin
hi, i want to do a 301 redirect on all my alias domain for a domain but i stuck in an infinite loop! server{ listen 80; server_name www.aaa.com www.aa.com ... return 301 http://www.bbb.com$request_uri; } server{ listen 80; server_name www.bbb.com ... } how to