Weird problem with redirects

Hamza Aboulfeth h.aboulfeth at genious.net
Sat Aug 13 17:36:34 UTC 2016


Hello,

We have formatted the server and installed everything over again, a week later the same problem occurred. All redirects are actually sent from time to time to another host:

[root at genious106 ~]# curl -IL -H "host: hespress.com" xx.xx.xx.xx
HTTP/1.1 301 Moved Permanently
Server: nginx/1.10.1
Date: Sat, 13 Aug 2016 13:31:28 GMT
Content-Type: text/html
Content-Length: 185
Connection: keep-alive
Location: http://1755118211
.com/
dbg-redirect: nginx

HTTP/1.1 302 Found
Server: nginx/1.2.1
Date: Sat, 13 Aug 2016 13:31:17 GMT
Content-Type: text/html; charset=iso-8859-1
Connection: keep-alive
Set-Cookie: orgje=2PUrADQAAgABACUhr1f__yUhr1dAAAEAAAAlIa9XMgACAAEAJSGvV___JSGvVwA-; expires=Sun, 13-Aug-2017 13:31:17 GMT; path=/; domain=traffsell.com
Location: http://triuch.com/6lo1I

HTTP/1.1 200 OK
Server: nginx
Date: Sat, 13 Aug 2016 13:31:17 GMT
Content-Type: text/html; charset=utf-8
Connection: keep-alive
Vary: Accept-Encoding
Vary: Accept-Encoding

[root at genious106 ~]#

Even php redirect requests are rerouted.

Please advice,
Hamza

> On 16 juil. 2016, at 08:47, Francis Daly <francis at daoine.org> wrote:
> 
> On Fri, Jul 15, 2016 at 10:58:07PM +0100, Hamza Aboulfeth wrote:
> 
> Hi there,
> 
>> I have a weird problem that suddenly appeared on a client's website
>> yesterday. We have a redirection from non www to www and sometimes
>> the redirection sends somewhere else:
>> 
>> [root at genious33 nginx-1.11.2]# curl -IL -H "host: hespress.com" x.x.x.x
> 
> If that x.x.x.x is enough to make sure that this request gets to your
> nginx, then your nginx config is probably involved.
> 
> If this only started yesterday, then changes since yesterday (or since
> your nginx was last restarted before yesterday) are probably most
> interesting.
> 
> And as a very long shot: if you can "tcpdump" to see that nginx is sending
> one thing, but the client is receiving something else, then you'll want
> to look outside nginx at something else interfering with the traffic.
> 
> Good luck with it,
> 
>    f
> -- 
> Francis Daly        francis at daoine.org
> 
> _______________________________________________
> nginx mailing list
> nginx at nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx



More information about the nginx mailing list