Website redirection issue

My domain

The operating system my web server runs on is (include version):Amazon linux

I can login to a root shell on my machine (yes or no, or I don’t know):yes

Hi guys,

Today , I have an issue with my website , when I typed ,it would wait for some seconds ,and the redirects it to, do anyone know this reason ?

What webserver are you using?

sudo ss -tlnp | grep -E ":(80|443)"

Hi _az,

I am using appache-tomcat,
]# sudo ss -tlnp | grep -E “:(80|443)”
LISTEN 0 100 :::80 :::* users:((“java”,pid=8458,fd=50))
LISTEN 0 100 :::443 :::* users:((“java”,pid=8458,fd=59))

The redirect would be coming from your Tomcat configuration then.

Perhaps take a look at this article to familiarize yourself with how it can be done, and you can search for similar changes in your own configuration:

There’s a chance if you are using ELB/ALB that one of those is doing it too, worth checking.

Actually, I am not using ELB/ALB. And 80 ,443 port is opening , I just don’t know why can be redirected to , I have not changed tomcat configuration file ,it didn’t have this issue for the passwd days .

Edit: I just realized that doesn’t redirect to for me.

Perhaps it is a browser caching issue on your side.

$ curl -X GET -I -L
HTTP/1.1 302
Cache-Control: private
Expires: Thu, 01 Jan 1970 00:00:00 GMT
Content-Length: 0
Date: Wed, 20 Feb 2019 05:34:13 GMT

HTTP/1.1 200
Cache-Control: private
Expires: Thu, 01 Jan 1970 00:00:00 GMT
Accept-Ranges: bytes
ETag: W/"1930-1550632124000"
Last-Modified: Wed, 20 Feb 2019 03:08:44 GMT
Content-Type: text/html
Content-Length: 1930
Date: Wed, 20 Feb 2019 05:34:15 GMT

Awsome! After I rebooted my computer , it works fine now !
this morning , I had tried 3 different browsers , but they were all redirected to .
Finally , thanks for your help !


This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.