Author Topic: Every website redirects to url:2031  (Read 1359 times)

0 Members and 1 Guest are viewing this topic.

Offline
*
Every website redirects to url:2031
« on: August 14, 2022, 09:41:15 PM »
Hello,

If I try any website like http(s)://abc.com, It will redirect to https://abc.com:2031 . I have apache rebuilt several time with no luck.

Any idea on how to fix this?

Offline
*
Re: Every website redirects to url:2031
« Reply #1 on: August 15, 2022, 12:35:31 AM »
PS:
1. I removed vhost conf for one domain and tried restarting httpd still redirecting

2. Sometimes when tried in browser 2-3 times some site works but some never works and redirects to 2031 port

Curl/wget output is always same:

wget http://xyz.in/
--2022-08-15 06:01:41--  http://xyz.in/
Resolving xyz.in (xyz.in)... ip.add.ress.here
Connecting to xyz.in (xyz.in)|ip.add.ress.here|:80... connected.
HTTP request sent, awaiting response... 301 Moved Permanently
Location: https://xyz.in:2031/ [following]
--2022-08-15 06:01:41--  https://xyz.in:2031/
Connecting to xyz.in (xyz.in)|ip.add.ress.here|:2031... connected.
ERROR: no certificate subject alternative name matches
        requested host name xyz.in.
To connect to xyz.in insecurely, use `--no-check-certificate'.
=========================================================

PS: I found that cwpsrv in weird way accepting connection on port 80 (!!!) And it is not even listening on port 80?!!!? Any idea
« Last Edit: August 15, 2022, 01:32:07 AM by aakrutitech »

Offline
*
Re: Every website redirects to url:2031
« Reply #2 on: August 15, 2022, 04:19:33 PM »
> SOLUTION: Restarted CSF firewall and it started working in incognito mode now. I think this is resolved. Still confused what this has to do with CSF!!